Also save tag from input box which hasn't been added to the list with <Enter>

This commit is contained in:
Thomas Bruederli 2013-10-17 18:28:56 +02:00
parent 5cd313f96d
commit 8b3a9262e6

View file

@ -1102,10 +1102,16 @@ function rcube_tasklist_ui(settings)
}
}
// collect tags
$('input[type="hidden"]', rcmail.gui_objects.edittagline).each(function(i,elem){
if (elem.value)
me.selected_task.tags.push(elem.value);
});
// including the "pending" one in the text box
var newtag = $('#tagedit-input').val();
if (newtag != '') {
me.selected_task.tags.push(newtag);
}
// serialize alarm settings
var alarm = $('#taskedit select.edit-alarm-type').val();