includes/clientside/static/enano-lib-basic.js
changeset 1362 c690f0b39bcb
parent 1344 dc96d6c5cd1e
equal deleted inserted replaced
1359:53c7e3cc7fb5 1362:c690f0b39bcb
    20 	alert('There was a problem loading the PHP-generated Javascript variables that control parameters for AJAX applets. Most on-page functionality will be very badly broken.\n\nTheme developers, ensure that you are using {JS_DYNAMIC_VARS} *before* you include jsres.php.');
    20 	alert('There was a problem loading the PHP-generated Javascript variables that control parameters for AJAX applets. Most on-page functionality will be very badly broken.\n\nTheme developers, ensure that you are using {JS_DYNAMIC_VARS} *before* you include jsres.php.');
    21 }
    21 }
    22 
    22 
    23 // placeholder for window.console - used if firebug isn't present
    23 // placeholder for window.console - used if firebug isn't present
    24 // http://getfirebug.com/firebug/firebugx.js
    24 // http://getfirebug.com/firebug/firebugx.js
    25 if (!window.console || !console.firebug)
    25 var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
    26 {
    26 "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
    27 		var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
    27 
    28 		"group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
    28 window.console || (window.console = {});
    29 
    29 for (var i = 0; i < names.length; ++i)
    30 		window.console = {};
    30 	if ( typeof(window.console[names[i]]) != 'function' )
    31 		for (var i = 0; i < names.length; ++i)
    31 		window.console[names[i]] = function() {}
    32 				window.console[names[i]] = function() {}
       
    33 }
       
    34 
    32 
    35 console.info('Enano::JS runtime: starting system init');
    33 console.info('Enano::JS runtime: starting system init');
    36 
    34 
    37 if ( typeof(ENANO_JSRES_COMPRESSED) == undefined )
    35 if ( typeof(ENANO_JSRES_COMPRESSED) == undefined )
    38 {
    36 {