Fixed a few variables
authorAlexander Ebert <ebert@woltlab.com>
Tue, 28 Oct 2014 10:47:28 +0000 (11:47 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 28 Oct 2014 10:47:28 +0000 (11:47 +0100)
wcfsetup/install/files/js/WCF.js

index ace5370eaa41db9e60ed92543646be85ff7cacc4..79a2943e5264d91a86d13a7b1a4850ce26cc4a9b 100755 (executable)
@@ -3026,8 +3026,8 @@ WCF.Date.Picker = {
                                // Date objects require a date and a time, thus
                                // add the current date to a time only-value
                                if ($input.data('timeOnly')) {
-                                       $dateComponents = $inputValue.split(':');
-                                       $date = new Date();
+                                       var $dateComponents = $inputValue.split(':');
+                                       var $date = new Date();
                                        $date.setHours($dateComponents[0]);
                                        $date.setMinutes($dateComponents[1]);
                                        $date.setSeconds(0);