Skip to content

Commit ee83b6f

Browse files
committed
Fix to apply regional settings from global defaults to new instance
1 parent e5ab6d1 commit ee83b6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ $.extend(Timepicker.prototype, {
9696
var tp_inst = new Timepicker(),
9797
inlineSettings = {};
9898

99-
for (var attrName in tp_inst._defaults) {
99+
for (var attrName in this._defaults) {
100100
var attrValue = $input.attr('time:' + attrName);
101101
if (attrValue) {
102102
try {
@@ -106,7 +106,7 @@ $.extend(Timepicker.prototype, {
106106
}
107107
}
108108
}
109-
tp_inst._defaults = $.extend({}, tp_inst._defaults, inlineSettings, o, {
109+
tp_inst._defaults = $.extend({}, this._defaults, inlineSettings, o, {
110110
beforeShow: function(input, dp_inst) {
111111
tp_inst.hour = tp_inst._defaults.hour;
112112
tp_inst.minute = tp_inst._defaults.minute;

0 commit comments

Comments
 (0)