Open kayz1 opened 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 :
function Timepicker() {
with function FGTimepicker() {
$.extend(Timepicker.prototype, {
with $.extend(FGTimepicker.prototype, {
$.timepicker = new Timepicker();
with $.fgtimepicker = new FGTimepicker();
$.fn.timepicker = function (options) {
with $.fn.fgtimepicker = function (options) {
$.timepicker
with $.fgtimepicker
That's about it, tell me if it works for you.
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:
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?
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.