fgelinas / timepicker

A jQuery UI Time Picker
http://fgelinas.com/code/timepicker
GNU General Public License v2.0
266 stars 84 forks source link

Timepickers united :) #67

Open kayz1 opened 11 years ago

kayz1 commented 11 years ago

Hey. Great work on Timepicker. I have a question: what do I have to do that these two plugins would work together on the same page ( yours and http://trentrichardson.com/examples/timepicker/). I need both :)

Regards.

fgelinas commented 11 years ago

This is something I get asked regulary, here is the procedure to change the timepicker function name :

In the file jquery.ui.timepicker.js :

That's about it, tell me if it works for you.

kayz1 commented 11 years ago

I guess it's working :+1: I've updated first few lines too:

$.extend($.ui, { fgtimepicker: { version: "0.3.2"} }); var PROP_NAME = 'fgtimepicker', tpuuid = new Date().getTime();

I suggest something like http://jqueryboilerplate.com/ var pluginName = 'fgtimepicker';

$.fn[pluginName] //compared to $.pluginName

Will be much easier to maintain, update when new version comes out :)

Tnx for now. Keep up :+1:

ova2 commented 11 years ago

Cool, this was helpful. Thanks guys. We use both in JSF and PrimeFaces world too. Would someone send a pull request to the author please?