diff options
author | LarryDavidJr <tobiasbunyan@hotmail.com> | 2012-09-18 11:41:00 +0200 |
---|---|---|
committer | LarryDavidJr <tobiasbunyan@hotmail.com> | 2012-09-18 11:41:00 +0200 |
commit | e6038cc326095b6b954d8fbe880432c4b9295011 (patch) | |
tree | 0fbe51b047b161f401232d3c880bbb4a47c8e664 /jquery-ui-timepicker-addon.js | |
parent | 030cd2a30470c33fd4f45410ca0a8a8d893c3343 (diff) | |
download | jQuery-Timepicker-Addon-e6038cc326095b6b954d8fbe880432c4b9295011.zip jQuery-Timepicker-Addon-e6038cc326095b6b954d8fbe880432c4b9295011.tar.gz jQuery-Timepicker-Addon-e6038cc326095b6b954d8fbe880432c4b9295011.tar.bz2 |
Fix splitDateTime function to work with IE7
The syntax for the second part of the splice does not work in IE7 (possibly others I haven't checked). Have changed to a zero start index without reversing the sign of the timePartsLen. As splice removes elements from the array, this way makes more logical sense anyway. Works in IE7, IE9 and chrome 21.0.
Diffstat (limited to 'jquery-ui-timepicker-addon.js')
-rw-r--r-- | jquery-ui-timepicker-addon.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js index b2bbe58..b532f3f 100644 --- a/jquery-ui-timepicker-addon.js +++ b/jquery-ui-timepicker-addon.js @@ -1571,7 +1571,7 @@ if (allPartsLen > 0) { return [ allParts.splice(0,allPartsLen-timePartsLen).join(separator), - allParts.splice(timePartsLen*-1).join(separator) + allParts.splice(0,timePartsLen).join(separator) ]; } |