Commit c2db34e2 authored by Joshua Gould's avatar Joshua Gould

quote terms

parent 7a4eca6e
This diff is collapsed.
...@@ -493,12 +493,8 @@ morpheus.Util.autosuggest = function (options) { ...@@ -493,12 +493,8 @@ morpheus.Util.autosuggest = function (options) {
trim: false, trim: false,
selectionStart: options.$el[0].selectionStart selectionStart: options.$el[0].selectionStart
}); });
// quote value if needed
var value = (ui.item.value[0] !== '"'
&& ui.item.value.indexOf(' ') > 0 ? ('"'
+ ui.item.value + '"')
: ui.item.value);
var value = ui.item.value;
var show = ui.item.show; // || (ui.item.space var show = ui.item.show; // || (ui.item.space
// && // &&
// options.suggestWhenEmpty); // options.suggestWhenEmpty);
...@@ -598,6 +594,7 @@ morpheus.Util.getAutocompleteTokens = function (text, options) { ...@@ -598,6 +594,7 @@ morpheus.Util.getAutocompleteTokens = function (text, options) {
if (i === options.selectionStart - 1) { if (i === options.selectionStart - 1) {
currentToken.inSelectionStart = true; currentToken.inSelectionStart = true;
} }
} }
tokens.push({ tokens.push({
...@@ -1054,6 +1051,7 @@ morpheus.Util.createSearchPredicates = function (options) { ...@@ -1054,6 +1051,7 @@ morpheus.Util.createSearchPredicates = function (options) {
possibleToken = '"' + possibleToken; possibleToken = '"' + possibleToken;
} }
if (!validateFieldNames if (!validateFieldNames
|| availableFields.indexOf(possibleField) !== -1) { || availableFields.indexOf(possibleField) !== -1) {
token = possibleToken; token = possibleToken;
......
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