summaryrefslogtreecommitdiff
path: root/skins/larry
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-11-18 07:59:25 -0500
committerAleksander Machniak <alec@alec.pl>2014-11-18 07:59:25 -0500
commit2a89127a7cc0e2cf8c44183c487b0a2a294219d7 (patch)
treea1580121a631f39c5b749eae7eb5ad16155ab735 /skins/larry
parentd876c6bd52f20a4bcfffef46d7504f3ebd89383f (diff)
Avoid duplicated errors in error dialog
Diffstat (limited to 'skins/larry')
-rw-r--r--skins/larry/ui.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index eac9ff912..583763ad1 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -411,6 +411,7 @@ function rcube_mail_ui()
if (me.message_timer) {
window.clearTimeout(me.message_timer);
}
+
if (!me.messagedialog) {
me.messagedialog = $('<div>').addClass('popupdialog').hide();
}
@@ -421,7 +422,7 @@ function rcube_mail_ui()
me.messagedialog.is(':visible') && me.messagedialog.dialog('destroy').hide();
};
- if (me.messagedialog.is(':visible'))
+ if (me.messagedialog.is(':visible') && me.messagedialog.text() != msg)
msg = me.messagedialog.html() + '<p>' + p.message + '</p>';
me.messagedialog.html(msg)