Removed some debuging output. Added workaround for missing console.log function on some browsers (e. g. Firefox).

This commit is contained in:
Kasper D. Fischer 2014-09-16 12:16:01 +00:00
parent c9786126b8
commit fdc8b9f65b
Notes: subgit 2018-03-07 17:59:05 +01:00
r743 www/trunk
2 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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());
});
});