diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js index 9dd6b6a..7f6e553 100644 --- a/jquery-ui-timepicker-addon.js +++ b/jquery-ui-timepicker-addon.js @@ -65,7 +65,8 @@ function Timepicker() { secondGrid: 0, alwaysSetTime: true, separator: ' ', - altFieldTimeOnly: true + altFieldTimeOnly: true, + showTimepicker: true }; $.extend(this._defaults, this.regional['']); } @@ -253,7 +254,8 @@ $.extend(Timepicker.prototype, { dp_id = this.inst.id.toString().replace(/([^A-Za-z0-9_])/g, ''); // Prevent displaying twice - if ($dp.find("div#ui-timepicker-div-"+ dp_id).length === 0) { + //if ($dp.find("div#ui-timepicker-div-"+ dp_id).length === 0) { + if ($dp.find("div#ui-timepicker-div-"+ dp_id).length === 0 && o.showTimepicker) { var noDisplay = ' style="display:none;"', html = '