]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - skins/common/wikibits.js
MediaWiki 1.15.0
[autoinstallsdev/mediawiki.git] / skins / common / wikibits.js
index 089d22d76b5adbe8108c2c78c3f28dd303a483a0..397dac91242e9bc1fe5d9e24602adf6072aeaeec 100644 (file)
@@ -14,6 +14,7 @@ var is_khtml = navigator.vendor == 'KDE' ||
        ( document.childNodes && !document.all && !navigator.taintEnabled );
 // For accesskeys; note that FF3+ is included here!
 var is_ff2 = /firefox\/[2-9]|minefield\/3/.test( clientPC );
+var is_ff2_ = /firefox\/2/.test( clientPC );
 // These aren't used here, but some custom scripts rely on them
 var is_ff2_win = is_ff2 && clientPC.indexOf('windows') != -1;
 var is_ff2_x11 = is_ff2 && clientPC.indexOf('x11') != -1;
@@ -91,8 +92,12 @@ if (typeof stylepath != 'undefined' && typeof skin != 'undefined') {
                importStylesheetURI(stylepath+'/'+skin+'/Opera6Fixes.css');
        } else if (is_opera_seven && !is_opera_95) {
                importStylesheetURI(stylepath+'/'+skin+'/Opera7Fixes.css');
+       } else if (is_opera_95) {
+               importStylesheetURI(stylepath+'/'+skin+'/Opera9Fixes.css');
        } else if (is_khtml) {
                importStylesheetURI(stylepath+'/'+skin+'/KHTMLFixes.css');
+       } else if (is_ff2_) {
+               importStylesheetURI(stylepath+'/'+skin+'/FF2Fixes.css');
        }
 }
 
@@ -807,7 +812,7 @@ function ts_parseFloat( s ) {
        }
 
        num = parseFloat(s.replace(/,/g, ""));
-       return (isNaN(num) ? s : num);
+       return (isNaN(num) ? 0 : num);
 }
 
 function ts_currencyToSortKey( s ) {