From a4f3cf111f1eecbc9c4198f240df603d6416efd6 Mon Sep 17 00:00:00 2001 From: Trent Richardson Date: Mon, 20 Sep 2010 16:17:50 -0400 Subject: [PATCH] Changed Today button to Now (localized) and Now button includes time --- jquery-ui-timepicker-addon.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js index 71094b0..c68d33a 100755 --- a/jquery-ui-timepicker-addon.js +++ b/jquery-ui-timepicker-addon.js @@ -1,8 +1,8 @@ /* * jQuery timepicker addon * By: Trent Richardson [http://trentrichardson.com] -* Version 0.6 -* Last Modified: 9/15/2010 +* Version 0.6.1 +* Last Modified: 9/20/2010 * * Copyright 2010 Trent Richardson * Dual licensed under the MIT and GPL licenses. @@ -88,8 +88,7 @@ if (!this.defaults.timeOnly) { //the time should come after x number of characters and a space. x = at least the length of text specified by the date format - var dp_dateFormat = $.datepicker._get(dp_inst, 'dateFormat'); - regstr = '.{' + dp_dateFormat.length + ',}\\s+' + regstr; + regstr = '.{' + this.defaults.dateFormat.length + ',}\\s+' + regstr; } var order = this.getFormatPositions(); @@ -490,3 +489,5 @@ $.timepicker = new Timepicker(true); // singleton instance })(jQuery); + +