includes/clientside/static/enano-lib-basic.js
changeset 555 ac4c6a7f01d8
parent 544 81b4499a963e
child 563 0103428e2179
equal deleted inserted replaced
554:e87390b1f9b0 555:ac4c6a7f01d8
    15  * this website for more information.
    15  * this website for more information.
    16  */
    16  */
    17 
    17 
    18 if(typeof title != 'string')
    18 if(typeof title != 'string')
    19 {
    19 {
    20   alert('Uh-oh! The required dynamic (PHP-generated) Javascript variables don\'t seem to be available. Javascript is going to be seriously broken.');
    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 // Run-time variables
    23 // Run-time variables
    24 
    24 
    25 var detect = navigator.userAgent.toLowerCase();
    25 var detect = navigator.userAgent.toLowerCase();
    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 var is_iPhone = ( checkIt('iphone') || checkIt('ipod') ) ? true : false;
       
    41 var is_firefox2 = ( checkIt('firefox/2.') ) ? true : false;
    41 
    42 
    42 var KILL_SWITCH = false;
    43 var KILL_SWITCH = false;
    43 
    44 
    44 if ( IE )
    45 if ( IE )
    45 {
    46 {