[checkmk-commits] Check_MK Git: check_mk: Fixed renamed function call

Lars Michelsen lm at mathias-kettner.de
Thu Apr 16 16:20:00 CEST 2015


Module: check_mk
Branch: master
Commit: 3ea9634be75ea0236672931a4c222f7126a027dc
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3ea9634be75ea0236672931a4c222f7126a027dc

Author: Lars Michelsen <lm at mathias-kettner.de>
Date:   Thu Apr 16 16:10:21 2015 +0200

Fixed renamed function call

---

 web/htdocs/html_mod_python.py |    2 +-
 web/htdocs/js/dashboard.js    |    8 +++-----
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/web/htdocs/html_mod_python.py b/web/htdocs/html_mod_python.py
index f7e422a..89b937f 100644
--- a/web/htdocs/html_mod_python.py
+++ b/web/htdocs/html_mod_python.py
@@ -119,7 +119,7 @@ class html_mod_python(htmllib.html):
         if config.pagetitle_date_format:
             self.write('   <b id=headerdate format="%s"></b>' % config.pagetitle_date_format)
         self.write(' <b id=headertime></b>')
-        self.write("<script language=\"javascript\" type=\"text/javascript\">updateHeaderTime()</script>")
+        self.javascript('update_header_timer()')
         self.top_heading_right()
 
     def omd_mode(self):
diff --git a/web/htdocs/js/dashboard.js b/web/htdocs/js/dashboard.js
index 04882e8..90557af 100644
--- a/web/htdocs/js/dashboard.js
+++ b/web/htdocs/js/dashboard.js
@@ -340,16 +340,14 @@ function dashboard_scheduler(initial) {
 
     // Update timestamp every minute
     // Required if there are no refresh_dashlets present or all refresh times are > 60sec
-    if (timestamp % 60 == 0) {
-        updateHeaderTime();
-    }
+    if (timestamp % 60 == 0)
+        update_header_timer();
 
     setTimeout(function() { dashboard_scheduler(0); }, 1000);
 }
 
 function dashboard_update_contents(id, response_text) {
-    // Update the header time
-    updateHeaderTime();
+    update_header_timer();
 
     // Call the generic function to replace the dashlet inner code
     updateContents(id, response_text);



More information about the checkmk-commits mailing list