Update to debug javascript

Set debug javascript flag in header inc and then set the variable in the
main body templates
This commit is contained in:
Clemens Schwaighofer
2015-04-24 11:06:16 +09:00
parent 57fb0b808d
commit 947497767d
5 changed files with 125 additions and 1 deletions

View File

@@ -9,7 +9,6 @@
*/
// if debug is set to true, console log messages are printed
var DEBUG = true;
if (!DEBUG)
{
$($H(window.console)).each(function(w) {

View File

@@ -21,6 +21,11 @@
{if $CSS_SPECIAL_INCLUDE}
<link rel=stylesheet type="text/css" href="{$CSS_SPECIAL_INCLUDE}">
{/if}
<script language="JavaScript">
<!--
var DEBUG = {$JS_DEBUG};
//-->
</script>
<script language="JavaScript" src="{$js}/firebug.js"></script>
<script language="JavaScript" src="{$js}/debug.js"></script>
{if $USE_JQUERY}