aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/js/plugins
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2011-05-23 11:25:50 +0000
committermistic100 <mistic@piwigo.org>2011-05-23 11:25:50 +0000
commitcf1a7f6df7fb0b475dab583d73fb9e27b7316ef0 (patch)
tree91ece88cd141abc20c28dfa5839881950de2004a /themes/default/js/plugins
parent2b00bd8c475e04fde251c0890e0d2ee9df149735 (diff)
TokenInput : order tags, theme for roma, 'new' text translated
git-svn-id: http://piwigo.org/svn/trunk@11008 68402e56-0260-453c-a942-63ccdbb3a9ee
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: "&times;",
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);