Skip to content

Commit a4f3cf1

Browse files
Changed Today button to Now (localized) and Now button includes time
1 parent 4f75af4 commit a4f3cf1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
22
* jQuery timepicker addon
33
* By: Trent Richardson [http://trentrichardson.com]
4-
* Version 0.6
5-
* Last Modified: 9/15/2010
4+
* Version 0.6.1
5+
* Last Modified: 9/20/2010
66
*
77
* Copyright 2010 Trent Richardson
88
* Dual licensed under the MIT and GPL licenses.
@@ -88,8 +88,7 @@
8888

8989
if (!this.defaults.timeOnly) {
9090
//the time should come after x number of characters and a space. x = at least the length of text specified by the date format
91-
var dp_dateFormat = $.datepicker._get(dp_inst, 'dateFormat');
92-
regstr = '.{' + dp_dateFormat.length + ',}\\s+' + regstr;
91+
regstr = '.{' + this.defaults.dateFormat.length + ',}\\s+' + regstr;
9392
}
9493

9594
var order = this.getFormatPositions();
@@ -490,3 +489,5 @@
490489

491490
$.timepicker = new Timepicker(true); // singleton instance
492491
})(jQuery);
492+
493+

0 commit comments

Comments
 (0)