[Rt-commit] r3062 - rt/branches/CHALDEA-EXPERIMENTAL/html/NoAuth

autrijus at bestpractical.com autrijus at bestpractical.com
Thu Jun 2 23:03:23 EDT 2005


Author: autrijus
Date: Thu Jun  2 23:03:22 2005
New Revision: 3062

Modified:
   rt/branches/CHALDEA-EXPERIMENTAL/html/NoAuth/combobox.js
Log:
* fix Safari borkenness with ComboBox.  Saf segfaults with
  .styles.display='none'; switched to the less pretty but
  still workable .styles.visibility='invisible';.

Modified: rt/branches/CHALDEA-EXPERIMENTAL/html/NoAuth/combobox.js
==============================================================================
--- rt/branches/CHALDEA-EXPERIMENTAL/html/NoAuth/combobox.js	(original)
+++ rt/branches/CHALDEA-EXPERIMENTAL/html/NoAuth/combobox.js	Thu Jun  2 23:03:22 2005
@@ -201,7 +201,9 @@
 }
 function ComboBox_SetVisibility(theList,isVisible) {
     var isIE = ( typeof( theList.dataSrc ) != "undefined" ); // dataSrc is an IE-only property which is unlikely to be supported elsewhere
-    if ( isIE ) {
+    var ua = navigator.userAgent.toLowerCase(); 
+    var isSafari = (ua.indexOf('safari') != - 1);
+    if ( isIE || isSafari) {
         if ( isVisible ) {
             theList.style.visibility = "visible";
         } else {


More information about the Rt-commit mailing list