From 171a38d37e97d7c21f6e78fdc344fc1bd12b9ab6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 20 Sep 2012 19:20:50 +0200 Subject: [PATCH] window.onload nicht direkt setzen --- templates/webpages/am/edit_accounts.html | 4 ++-- templates/webpages/menu/menunew.html | 5 ++--- templates/webpages/menu/menuv3.html | 5 ++--- templates/webpages/menu/menuv4.html | 5 ++--- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/templates/webpages/am/edit_accounts.html b/templates/webpages/am/edit_accounts.html index 597aebc00..dcf0be088 100644 --- a/templates/webpages/am/edit_accounts.html +++ b/templates/webpages/am/edit_accounts.html @@ -8,9 +8,9 @@
diff --git a/templates/webpages/menu/menunew.html b/templates/webpages/menu/menunew.html index 89bad2b37..539bf4e55 100644 --- a/templates/webpages/menu/menunew.html +++ b/templates/webpages/menu/menunew.html @@ -2,14 +2,13 @@ [% USE HTML %] diff --git a/templates/webpages/menu/menuv3.html b/templates/webpages/menu/menuv3.html index 2bd0f87e7..9a3410da5 100644 --- a/templates/webpages/menu/menuv3.html +++ b/templates/webpages/menu/menuv3.html @@ -27,14 +27,13 @@ function on_keydown_quicksearch(e) { return false; } -function clockon() { +$(function() { var now = new Date(); var h = now.getHours(); var m = now.getMinutes(); document.getElementById('clock_id').innerHTML = (h<10?'0'+h:h)+":"+(m<10?'0'+m:m); var timer=setTimeout("clockon()", 10000); -} -window.onload=clockon +}); //--> diff --git a/templates/webpages/menu/menuv4.html b/templates/webpages/menu/menuv4.html index b54c143fa..d82a8e0d6 100644 --- a/templates/webpages/menu/menuv4.html +++ b/templates/webpages/menu/menuv4.html @@ -7,13 +7,12 @@ -- 2.20.1