includes/clientside/static/enano-lib-basic.js
changeset 509 175df10e0b56
parent 473 518bc2b214f1
child 544 81b4499a963e
equal deleted inserted replaced
508:459a447d7e79 509:175df10e0b56
    35 }
    35 }
    36 if (checkIt('msie')) IE = true;
    36 if (checkIt('msie')) IE = true;
    37 else IE = false;
    37 else IE = false;
    38 
    38 
    39 var is_Opera = ( checkIt('opera') ) ? true : false;
    39 var is_Opera = ( checkIt('opera') ) ? true : false;
       
    40 var is_iPhone = ( checkIt('iphone') || checkIt('ipod') ) ? true : false;
    40 
    41 
    41 var KILL_SWITCH = false;
    42 var KILL_SWITCH = false;
    42 
    43 
    43 if ( IE )
    44 if ( IE )
    44 {
    45 {
   271     script.src=scriptPath+"/includes/clientside/tinymce/tiny_mce.js";
   272     script.src=scriptPath+"/includes/clientside/tinymce/tiny_mce.js";
   272     head.appendChild(script);
   273     head.appendChild(script);
   273   }
   274   }
   274 }
   275 }
   275 
   276 
   276 // wrapper for window.console
   277 var script = document.createElement('script');
   277 if ( !window.console )
   278 script.type="text/javascript";
   278 {
   279 script.src=scriptPath+"/includes/clientside/firebug/firebug.js";
   279   window.console = {
   280 head.appendChild(script);
   280     log: function() {},
   281 
   281     debug: function() {},
   282 // placeholder for window.console - used if firebug isn't present
   282     info: function() {},
   283 // http://getfirebug.com/firebug/firebugx.js
   283     warn: function() {},
   284 if (!window.console || !console.firebug)
   284     warning: function() {},
   285 {
   285     error: function() {},
   286     var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
   286     write: function() {}
   287     "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
   287   }
   288 
       
   289     window.console = {};
       
   290     for (var i = 0; i < names.length; ++i)
       
   291         window.console[names[i]] = function() {}
       
   292 }
       
   293 
       
   294 // safari has window.console but not the .debug() method
       
   295 if ( is_Safari && !window.console.debug )
       
   296 {
       
   297   window.console.debug = function() {};
   288 }
   298 }
   289 
   299 
   290 // Do not remove the following comments, they are used by jsres.php.
   300 // Do not remove the following comments, they are used by jsres.php.
   291 /*!START_INCLUDER*/
   301 /*!START_INCLUDER*/
   292 
   302