changeset 3957:579699ec0c23

enable safari, opera browser use gui editor
author Byeongweon [tasyblue@gmail.com]
date Wed, 25 Jun 2008 17:02:48 +0900
parents d7364eb0f4d8
children 55444eae3fe5
files wiki/htdocs/common/js/common.js
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/wiki/htdocs/common/js/common.js	Wed Jun 25 16:24:29 2008 +0900
+++ b/wiki/htdocs/common/js/common.js	Wed Jun 25 17:02:48 2008 +0900
@@ -94,7 +94,8 @@
         return true ;
 
     // Opera
-    if ( this.EnableOpera )
+	// remove this.EnableOpera code to enable opera
+    if ( sAgent.indexOf("opera") != -1 )
     {   
         var aMatch = sAgent.match( /^opera\/(\d+\.\d+)/ ) ;
         if ( aMatch && aMatch[1] >= 9.0 )
@@ -102,7 +103,8 @@
     }
     
     // Safari
-    if ( this.EnableSafari && sAgent.indexOf( 'safari' ) != -1 )
+	// remove this.EnableSafari code to enable safari
+    if ( sAgent.indexOf( 'safari' ) != -1 )
         return ( sAgent.match( /safari\/(\d+)/ )[1] >= 312 ) ;  // Build must be at least 312 (1.3)
 
     return false ;