summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-10-17 16:28:56 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-10-31 11:50:43 (GMT)
commite7372b3b82894d9b3cc4ac0a9883a5ded0ea3004 (patch)
tree5c215e342d06458189a511bb1bc23f3f31c2266b
parentc1b4946e3e8270c5150bc5a7cc6be4f1b65e8619 (diff)
downloadroundcubemail-plugins-kolab-e7372b3b82894d9b3cc4ac0a9883a5ded0ea3004.tar.gz
Also save tag from input box which hasn't been added to the list with <Enter>
-rw-r--r--plugins/tasklist/tasklist.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/tasklist/tasklist.js b/plugins/tasklist/tasklist.js
index d76c9d1..2089c70 100644
--- a/plugins/tasklist/tasklist.js
+++ b/plugins/tasklist/tasklist.js
@@ -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();