Changeset 897

Show
Ignore:
Timestamp:
10/10/08 03:14:22 (9 months ago)
Author:
adam
Message:

Fixing the new loader stuff in Opera

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/windmill/html/remote.html

    r895 r897  
    191191  var noFile = function(s){ 
    192192    //Double check to make sure we aren't loading windmill src twice 
    193     if (windmill != undefined){ return; } 
     193    if (typeof(windmill) != "undefined"){ return; } 
    194194    jQuery("#loadMessage").html("Defaulting to JavaScript includes.."); 
    195195     
     
    238238   
    239239  jQuery("#loadMessage").html("Downloading JavaScript Source..."); 
    240   jQuery.ajax({ 
    241     type: "GET", 
    242     url: path, 
    243     dataType: "script", 
    244     error: noFile 
    245   }); 
     240   
     241  if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ 
     242    noFile(); 
     243  } 
     244  else { 
     245    jQuery.ajax({ 
     246      type: "GET", 
     247      url: path, 
     248      dataType: "script", 
     249      error: noFile 
     250    }); 
     251  } 
     252 
    246253 
    247254</script>