aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/js/plugins/jquery.tokeninput.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--themes/default/js/plugins/jquery.tokeninput.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/themes/default/js/plugins/jquery.tokeninput.js b/themes/default/js/plugins/jquery.tokeninput.js
index 52d43d6ad..0c8662b3b 100644
--- a/themes/default/js/plugins/jquery.tokeninput.js
+++ b/themes/default/js/plugins/jquery.tokeninput.js
@@ -21,6 +21,7 @@ var DEFAULT_SETTINGS = {
hintText: "Type in a search term",
noResultsText: "No results",
searchingText: "Searching...",
+ newText: "(new)",
deleteText: "×",
searchDelay: 300,
minChars: 1,
@@ -705,7 +706,7 @@ $.TokenList = function (input, url_or_data, settings) {
}
if(settings.allowCreation) {
- results.push({name: input_box.val() + ' (new)', id: input_box.val()});
+ results.push({name: input_box.val() + settings.newText, id: input_box.val()});
}
cache.add(query, settings.jsonContainer ? results[settings.jsonContainer] : results);
@@ -728,7 +729,7 @@ $.TokenList = function (input, url_or_data, settings) {
}
if(settings.allowCreation) {
- results.push({name: input_box.val() + ' (new)', id: input_box.val()});
+ results.push({name: input_box.val() + settings.newText, id: input_box.val()});
}
cache.add(query, results);