diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-11-18 07:59:25 -0500 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-11-18 07:59:25 -0500 |
commit | 2a89127a7cc0e2cf8c44183c487b0a2a294219d7 (patch) | |
tree | a1580121a631f39c5b749eae7eb5ad16155ab735 /skins/larry | |
parent | d876c6bd52f20a4bcfffef46d7504f3ebd89383f (diff) |
Avoid duplicated errors in error dialog
Diffstat (limited to 'skins/larry')
-rw-r--r-- | skins/larry/ui.js | 3 |
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) |