Skip to content

Commit e6038cc

Browse files
committed
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. 
1 parent 030cd2a commit e6038cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,7 @@
15711571
if (allPartsLen > 0) {
15721572
return [
15731573
allParts.splice(0,allPartsLen-timePartsLen).join(separator),
1574-
allParts.splice(timePartsLen*-1).join(separator)
1574+
allParts.splice(0,timePartsLen).join(separator)
15751575
];
15761576
}
15771577

0 commit comments

Comments
 (0)