Set debug javascript flag in header inc and then set the variable in the main body templates
18 lines
410 B
JavaScript
18 lines
410 B
JavaScript
/*
|
|
********************************************************************
|
|
* AUTHOR: Clemens Schwaighofer
|
|
* DATE: 2015/4/24
|
|
* DESCRIPTION:
|
|
* debug javascript
|
|
* HISTORY:
|
|
********************************************************************
|
|
*/
|
|
|
|
// if debug is set to true, console log messages are printed
|
|
if (!DEBUG)
|
|
{
|
|
$($H(window.console)).each(function(w) {
|
|
window.console[w.key] = function() {}
|
|
});
|
|
}
|