summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorSebastian Wagner2011-09-08 18:08:31 +0200
committerSebastian Wagner2011-09-08 18:08:31 +0200
commit06bf656b0f06454e96a45ffe55a362f905e54944 (patch)
tree8d6290a3abd33f8c51d71e4daeb15cf80e419fa2 /public
parentMerge branch 'master' of git.openslx.org:lsfks/projekte/poolctrl (diff)
downloadpoolctrl-06bf656b0f06454e96a45ffe55a362f905e54944.tar.gz
poolctrl-06bf656b0f06454e96a45ffe55a362f905e54944.tar.xz
poolctrl-06bf656b0f06454e96a45ffe55a362f905e54944.zip
some bug fixes
Diffstat (limited to 'public')
-rw-r--r--public/media/js/script.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/media/js/script.js b/public/media/js/script.js
index 430136b..deb7a41 100644
--- a/public/media/js/script.js
+++ b/public/media/js/script.js
@@ -120,10 +120,10 @@ function immediateChanged(name) {
setElementInvisible("participants-label");
setElementInvisible("participants-element");
date = new Date();
- start = date.getMonth() + '/' + date.getDay() + '/'
+ month = date.getMonth() + 1;
+ start = month + '/' + date.getDate() + '/'
+ date.getFullYear() + ' ' + date.getHours() + ':'
+ date.getMinutes();
- alert(start);
setElementValue('start', start);
disableElement('end');
disableElement('repeat');