From fdc8b9f65bb055864a719ecaf6b68d242b72c851 Mon Sep 17 00:00:00 2001 From: "Kasper D. Fischer" Date: Tue, 16 Sep 2014 12:16:01 +0000 Subject: [PATCH] Removed some debuging output. Added workaround for missing console.log function on some browsers (e. g. Firefox). --- www/events.js | 1 - www/misc.js | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/www/events.js b/www/events.js index 76fd74b..3b43e18 100644 --- a/www/events.js +++ b/www/events.js @@ -100,7 +100,6 @@ function ajaxLoadEvents(stime, etime, eventid, url, target) { }; }; }; - //console.log(ajax_url+'?'+$.param(request_data)); if ( etime == '' || !etime ) { etime = new Date(); }; $.ajax({ type: "GET", diff --git a/www/misc.js b/www/misc.js index 38b500c..9fe890a 100644 --- a/www/misc.js +++ b/www/misc.js @@ -145,6 +145,9 @@ var networkText = { }; var bochumStation = ['BUG', 'IBBN', 'KERA', 'KARP']; +// FIX: firefox has no console +if (typeof console == "undefined") var console = { log: function() {} }; + /********************************************************************** * document ready * **********************************************************************/ @@ -195,9 +198,7 @@ $(document).ready(function() { // spinner $(document).bind("ajaxSend", function() { $("#spinner").show(); - console.log('Starting Spinner at '+Date()); }).bind("ajaxStop", function() { $("#spinner").hide(); - console.log('Stopping Spinner at '+Date()); }); });