Fix checkbox selection on notes list

This commit is contained in:
Aleksander Machniak 2018-01-25 12:15:07 +01:00
parent 59a79b1cee
commit 0fe1f4928d

View file

@ -214,7 +214,7 @@ function rcube_kolab_notes_ui(settings)
edit_note(note.uid, 'edit'); edit_note(note.uid, 'edit');
} }
else { else {
reset_view(); reset_view(true);
} }
}, },
function(){ function(){
@ -1170,7 +1170,7 @@ function rcube_kolab_notes_ui(settings)
/** /**
* *
*/ */
function reset_view() function reset_view(list)
{ {
close_history_dialog(); close_history_dialog();
me.selected_note = null; me.selected_note = null;
@ -1181,8 +1181,11 @@ function rcube_kolab_notes_ui(settings)
$(rcmail.gui_objects.notesdetailview).hide(); $(rcmail.gui_objects.notesdetailview).hide();
$(rcmail.gui_objects.notesattachmentslist).html(''); $(rcmail.gui_objects.notesattachmentslist).html('');
rcmail.enable_command('save', false); rcmail.enable_command('save', false);
if (!list) {
rcmail.triggerEvent('show-list'); rcmail.triggerEvent('show-list');
} }
}
/** /**
* Collect data from the edit form and submit it to the server * Collect data from the edit form and submit it to the server