summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/todo.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/todo.js b/www/js/todo.js
index 5636be5..37eb292 100644
--- a/www/js/todo.js
+++ b/www/js/todo.js
@@ -153,7 +153,7 @@ function todo_init() {
var url = parseLocationHref();
var d = new Date();
if(url.path.length > 1) {
- tmp = new Date(url.path[1]);
+ var tmp = new Date(url.path[1]);
if((Object.prototype.toString.call(tmp) === '[object Date]') || (tmp.toString() !== 'Invalid Date')) {
d = tmp;
}