From: Miguel <mig...@us...> - 2004-12-11 22:22:19
|
Update of /cvsroot/jmol/Jmol/appletweb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7460/appletweb Modified Files: Jmol.js Log Message: konqueror on linux/unix tests negative Index: Jmol.js =================================================================== RCS file: /cvsroot/jmol/Jmol/appletweb/Jmol.js,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- Jmol.js 10 Dec 2004 03:44:45 -0000 1.27 +++ Jmol.js 11 Dec 2004 22:22:10 -0000 1.28 @@ -453,9 +453,9 @@ isNetscape47Win = (os == "win" && browser == "mozilla" && browserVersion >= 4.78 && browserVersion <= 4.8); - if (os != "mac") { + if (os == "win") { isBrowserCompliant = hasGetElementById || isNetscape47Win; - } else { // mac is the problem child :-( + } else if (os == "mac") { // mac is the problem child :-( if (browser == "mozilla" && browserVersion >= 5) { // miguel 2004 11 17 // checking the plugins array does not work because @@ -471,6 +471,13 @@ !((browser == "msie") || (browser == "safari" && browserVersion < 125.1)); } + } else if (os == "linux" || os == "unix") { + if (browser == "konqueror" && browserVersion <= 3.3) + isBrowserCompliant = false; + else + isBrowserCompliant = hasGetElementById; + } else { // other OS + isBrowserCompliant = hasGetElementById; } // possibly more checks in the future for this |