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 { |