mirror of
https://github.com/discourse/discourse.git
synced 2025-02-18 09:15:19 +00:00
Combine single path conditional
This commit is contained in:
parent
8961a2ee28
commit
db5ff5f311
@ -398,11 +398,9 @@ $.fn.autocomplete = function(options) {
|
|||||||
term += (e.shiftKey) ? "|" : "]";
|
term += (e.shiftKey) ? "|" : "]";
|
||||||
} else if (e.which === 222) {
|
} else if (e.which === 222) {
|
||||||
term += (e.shiftKey) ? "\"" : "'";
|
term += (e.shiftKey) ? "\"" : "'";
|
||||||
} else {
|
} else if (e.which !== 8) {
|
||||||
if (e.which !== 8) {
|
|
||||||
term += ",";
|
term += ",";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
updateAutoComplete(options.dataSource(term));
|
updateAutoComplete(options.dataSource(term));
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user