summaryrefslogtreecommitdiff
path: root/src/client/view/completer.js
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-03-01 15:04:02 +0200
committerLV-426 <lv-426@taproot.org.il>2015-03-01 15:04:02 +0200
commit62d7291a62dacd5c4ed1faa96efb87d948958cfa (patch)
treeed2b19cd8d01460fcc521f01cbc57f732bff14e6 /src/client/view/completer.js
parentc0ad056727f6e62579b8d06d1c17cb03ba2a8a3d (diff)
adding missing 'quoted' function, call introduced in dfc93cf003e8b4484e98ead7f7eac63ad10182e7
Diffstat (limited to 'src/client/view/completer.js')
-rw-r--r--src/client/view/completer.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/client/view/completer.js b/src/client/view/completer.js
index 627efc5a..2e12b9b1 100644
--- a/src/client/view/completer.js
+++ b/src/client/view/completer.js
@@ -2,8 +2,11 @@ define(
['jquery', 'Bacon', 'util'],
function($, Bacon, util) {
-function unquoted(name)
-{
+function quoted__double(string) { // quote string using double quotes
+ return '"' + string + '"';
+}
+
+function unquoted(name) {
var start = 0,
end = name.length;
@@ -217,7 +220,7 @@ var completer = (function (input_element, dropdown, base_config) {
var e = dropdown.children()[index],
s = e.innerText || e.textContent;
if (s.indexOf(' ') != -1 && config.quoteSpaceContaining) {
- return quoted(s);
+ return quoted__double(s);
}
return s;
}