summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYohann Lorant <yohann.lorant@gmail.com>2014-08-25 11:27:57 +0200
committerYohann Lorant <yohann.lorant@gmail.com>2014-08-25 11:27:57 +0200
commit891fdb17e260e8f06517b5507c47e437495221f2 (patch)
treea63d0282d3e2071abb8781e9cefedeb4eadb000c /src
parentab0ea751e7af5fe70d02cdde79d636818d20131b (diff)
downloadjQuery-Timepicker-Addon-891fdb17e260e8f06517b5507c47e437495221f2.zip
jQuery-Timepicker-Addon-891fdb17e260e8f06517b5507c47e437495221f2.tar.gz
jQuery-Timepicker-Addon-891fdb17e260e8f06517b5507c47e437495221f2.tar.bz2
Update jquery-ui-timepicker-addon.js
Fixed a big bug on the "go to today" functionnality. When the month is not the current month, the date change didn't work, because the div ".ui-datepicker-today" was not there.
Diffstat (limited to 'src')
-rw-r--r--src/jquery-ui-timepicker-addon.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jquery-ui-timepicker-addon.js b/src/jquery-ui-timepicker-addon.js
index e962ac3..2a73353 100644
--- a/src/jquery-ui-timepicker-addon.js
+++ b/src/jquery-ui-timepicker-addon.js
@@ -1535,7 +1535,8 @@
selectLocalTimezone(tp_inst);
var now = new Date();
this._setTime(inst, now);
- $('.ui-datepicker-today', $dp).click();
+ this._setDate(inst, now);
+ this._hideDatepicker($(id)[0]);
};
/*