Add debug and firebug javascript to all main templates

debug has flag to turn off all console.* methods
firebug has override if console.* are missing
This commit is contained in:
Clemens Schwaighofer
2015-04-24 10:16:48 +09:00
parent 2f27bd1537
commit 57fb0b808d
7 changed files with 145 additions and 15 deletions

View File

@@ -0,0 +1,18 @@
/*
********************************************************************
* AUTHOR: Clemens Schwaighofer
* DATE: 2015/4/24
* DESCRIPTION:
* debug javascript
* HISTORY:
********************************************************************
*/
// if debug is set to true, console log messages are printed
var DEBUG = true;
if (!DEBUG)
{
$($H(window.console)).each(function(w) {
window.console[w.key] = function() {}
});
}