Fix selecting tags from autocompletion (#1329)

This commit is contained in:
Thomas Bruederli 2013-02-27 12:16:27 +01:00
parent 3b913e15d3
commit 032353e221
2 changed files with 2 additions and 2 deletions

View file

@ -455,7 +455,7 @@
// If there is an entry for that already in the autocomplete, don't use it (Check could be case sensitive or not) // If there is an entry for that already in the autocomplete, don't use it (Check could be case sensitive or not)
for (var i = 0; i < result.length; i++) { for (var i = 0; i < result.length; i++) {
var label = typeof result[i] == 'string' ? result[i] : result[i].label; var label = typeof result[i] == 'string' ? result[i] : result[i].label;
if (options.checkNewEntriesCaseSensitive == true) if (options.checkNewEntriesCaseSensitive == false)
label = label.toLowerCase(); label = label.toLowerCase();
if (label == compareValue) { if (label == compareValue) {
isNew = false; isNew = false;

View file

@ -1077,7 +1077,7 @@ function rcube_tasklist_ui(settings)
} }
} }
$('input[name="tags[]"]', rcmail.gui_objects.edittagline).each(function(i,elem){ $('input[type="hidden"]', rcmail.gui_objects.edittagline).each(function(i,elem){
if (elem.value) if (elem.value)
me.selected_task.tags.push(elem.value); me.selected_task.tags.push(elem.value);
}); });