diff options
author | Aleksander Machniak <alec@alec.pl> | 2019-11-10 10:36:00 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2019-11-18 17:30:22 +0300 |
commit | 338b25dec97aa404cc909778e1b8d0f59120013d (patch) | |
tree | 03bd471f1d28461e3b02bebb59e2d46dab3f3c22 /plugins | |
parent | 03cee8f5549fe0780a52bdf6e39fa505a1ebbaf6 (diff) |
Managesieve: Fix locked UI after opening filter frame (#7007)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/managesieve/managesieve.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/managesieve/managesieve.js b/plugins/managesieve/managesieve.js index 3a9cc9e35..bf8cd39dc 100644 --- a/plugins/managesieve/managesieve.js +++ b/plugins/managesieve/managesieve.js @@ -426,13 +426,11 @@ rcube_webmail.prototype.load_managesieveframe = function(add_url, reset) if (reset) this.reset_filters_list(); - if (this.env.contentframe && window.frames && window.frames[this.env.contentframe]) { - var lock = this.set_busy(true, 'loading'), - target = window.frames[this.env.contentframe]; + var target = this.get_frame_window(this.env.contentframe), + url = this.url('plugin.managesieve-action', '_framed=1' + (add_url ? ('&' + add_url) : '')); - target.location.href = this.env.comm_path - + '&_action=plugin.managesieve-action&_framed=1&_unlock=' + lock - + (add_url ? ('&' + add_url) : ''); + if (target) { + this.location_href(url, target, true); } }; |