summaryrefslogtreecommitdiff
path: root/plugins/kolab_notes
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-08-25 16:24:55 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-08-25 16:24:55 (GMT)
commit032e0f48c1cb1b7910e3b4d0b885f9dc64dd5d36 (patch)
tree1d3c453dc2dd2ae6c49b7ed407a8eb207dfff618 /plugins/kolab_notes
parent9496f4f820db1c5822e339033fe81f864b42ea47 (diff)
downloadroundcubemail-plugins-kolab-032e0f48c1cb1b7910e3b4d0b885f9dc64dd5d36.tar.gz
Avoid noteslist.clear_selection() to trigger warning dialog again; destroy dialog on close
Diffstat (limited to 'plugins/kolab_notes')
-rw-r--r--plugins/kolab_notes/notes.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/kolab_notes/notes.js b/plugins/kolab_notes/notes.js
index 974e525..46117e0 100644
--- a/plugins/kolab_notes/notes.js
+++ b/plugins/kolab_notes/notes.js
@@ -410,8 +410,10 @@ function rcube_kolab_notes_ui(settings)
function edit_note(uid, action)
{
if (!uid) {
+ me.selected_note = null;
if (noteslist)
noteslist.clear_selection();
+
me.selected_note = {
list: me.selected_list,
uid: null,
@@ -1235,6 +1237,9 @@ function rcube_kolab_notes_ui(settings)
setTimeout(function(){
dialog.parent().find('.ui-button:visible').first().addClass('mainaction').focus();
}, 10);
+ },
+ close: function(event, ui) {
+ $(this).dialog('destroy').remove();
}
};