summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-08-11 09:10:34 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-08-11 09:10:34 +0000
commitce831163154cdd48f7df1aca29972960ccc5e155 (patch)
treef8f347524ee32495514cf5a4c79ce213b6e8b027 /roundcubemail/program/js
parentcb0ff852530c25fe633766bfecb9c54f800f4790 (diff)
- Two fixes for Konqueror
git-svn-id: https://svn.roundcube.net/trunk@3890 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
-rw-r--r--roundcubemail/program/js/app.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index c4966eee0..6266c3393 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -1759,11 +1759,11 @@ function rcube_webmail()
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 @@ function rcube_webmail()
this.name_input_li.insertAfter(li);
}
- this.name_input.select();
+ this.name_input.select().focus();
};
this.group_rename = function()
@@ -3745,7 +3745,7 @@ function rcube_webmail()
}
}
- this.name_input.select();
+ this.name_input.select().focus();
};
this.group_delete = function()
@@ -3904,7 +3904,7 @@ function rcube_webmail()
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';