diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-08-27 06:18:54 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-08-27 06:18:54 +0000 |
| commit | 1c9867c25df77cdfd028bbd66561917b91d9e9a2 (patch) | |
| tree | 47776dd4461ae2706a2e2a36d535e990637e9ee7 /roundcubemail/program/js/app.js | |
| parent | be46fdcce049bd0433631a01098b5aa40c530449 (diff) | |
Reload settings page if language was changed
git-svn-id: https://svn.roundcube.net/trunk@2873 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
| -rw-r--r-- | roundcubemail/program/js/app.js | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 4ad62b46e..88e133945 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -697,9 +697,9 @@ function rcube_webmail() else if (this.task=='settings' && props) this.load_identity(props, 'edit-identity'); else if (this.task=='mail' && (cid = this.get_single_uid())) { - var url = (this.env.mailbox == this.env.drafts_mailbox) ? '_draft_uid=' : '_uid='; + var url = (this.env.mailbox == this.env.drafts_mailbox) ? '_draft_uid=' : '_uid='; this.goto_url('compose', url+cid+'&_mbox='+urlencode(this.env.mailbox), true); - } + } break; case 'save-identity': @@ -837,7 +837,7 @@ function rcube_webmail() case 'select-all': if (props == 'invert') this.message_list.invert_selection(); - else + else this.message_list.select_all(props); break; @@ -1214,6 +1214,16 @@ function rcube_webmail() this.set_busy(false); this.display_message('Request timed out!', 'error'); }; + + this.reload = function(delay) + { + if (this.env.framed && parent.rcmail) + parent.rcmail.reload(delay); + else if (delay) + window.setTimeout(function(){ rcmail.reload(); }, delay); + else if (window.location) + location.href = this.env.comm_path; + }; /*********************************************************/ |
