[Svn] r3890 - trunk/roundcubemail/program/js

trac at roundcube.net trac at roundcube.net
Wed Aug 11 11:10:35 CEST 2010


Author: alec
Date: 2010-08-11 04:10:34 -0500 (Wed, 11 Aug 2010)
New Revision: 3890

Modified:
   trunk/roundcubemail/program/js/app.js
Log:
- Two fixes for Konqueror


Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2010-08-10 13:33:09 UTC (rev 3889)
+++ trunk/roundcubemail/program/js/app.js	2010-08-11 09:10:34 UTC (rev 3890)
@@ -1759,11 +1759,11 @@
 
   this.show_contentframe = function(show)
   {
-    var frm;
+    var frm, win;
     if (this.env.contentframe && (frm = $('#'+this.env.contentframe)) && frm.length) {
-      if (!show && window.frames[this.env.contentframe]) {
-        if (window.frames[this.env.contentframe].location.href.indexOf(this.env.blankpage)<0)
-          window.frames[this.env.contentframe].location.href = this.env.blankpage;
+      if (!show && (win = window.frames[this.env.contentframe])) {
+        if (win.location && win.location.href.indexOf(this.env.blankpage)<0)
+          win.location.href = this.env.blankpage;
       }
       else if (!bw.safari && !bw.konq)
         frm[show ? 'show' : 'hide']();
@@ -3725,7 +3725,7 @@
       this.name_input_li.insertAfter(li);
     }
 
-    this.name_input.select();
+    this.name_input.select().focus();
   };
 
   this.group_rename = function()
@@ -3745,7 +3745,7 @@
       }
     }
 
-    this.name_input.select();
+    this.name_input.select().focus();
   };
 
   this.group_delete = function()
@@ -3904,7 +3904,7 @@
     if (action=='edit-identity' && (!id || id==this.env.iid))
       return false;
 
-    var add_url = '',  target = window;
+    var add_url = '', target = window;
 
     if (this.env.contentframe && window.frames && window.frames[this.env.contentframe]) {
       add_url = '&_framed=1';

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list