summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-10-30 15:41:29 +0100
committerAleksander Machniak <alec@alec.pl>2013-10-30 15:41:29 +0100
commitc511f5d7c855b915baac7a014fbfaba974323537 (patch)
tree3693515f65c76830d57e2518d3adb2d3f58bbec7 /program
parent03da10725c584e2b3273f8cf66a0b2a51aadd275 (diff)
Eliminate "blinking" loading icon in browser on messages selection
- do not assign location.href to the same value as it is
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 81b796ec1..42cbaa6f9 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2062,12 +2062,14 @@ function rcube_webmail()
if (name && (frame = this.get_frame_element(name))) {
if (!show && (win = this.get_frame_window(name))) {
- if (win.stop)
- win.stop();
- else // IE
- win.document.execCommand('Stop');
+ if (win.location.href.indexOf(this.env.blankpage) < 0) {
+ if (win.stop)
+ win.stop();
+ else // IE
+ win.document.execCommand('Stop');
- win.location.href = this.env.blankpage;
+ win.location.href = this.env.blankpage;
+ }
}
else if (!bw.safari && !bw.konq)
$(frame)[show ? 'show' : 'hide']();