Commit a8cce923 authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #2864807 by droplet, amateescu, cilefen, CatsFromStonehenge, Wim Leers:...

Issue #2864807 by droplet, amateescu, cilefen, CatsFromStonehenge, Wim Leers: Autocomplete textfield surrounds titles with double quotes
parent 5c84cb1b
......@@ -177,12 +177,8 @@
// Remove the current input.
terms.pop();
// Add the selected item.
if (ui.item.value.search(',') > 0) {
terms.push('"' + ui.item.value + '"');
}
else {
terms.push(ui.item.value);
}
terms.push(ui.item.value);
event.target.value = terms.join(', ');
// Return false to tell jQuery UI that we've filled in the value already.
return false;
......
......@@ -101,11 +101,8 @@
terms.pop();
if (ui.item.value.search(',') > 0) {
terms.push('"' + ui.item.value + '"');
} else {
terms.push(ui.item.value);
}
terms.push(ui.item.value);
event.target.value = terms.join(', ');
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment