TokenInput : order tags, theme for roma, 'new' text translated

git-svn-id: http://piwigo.org/svn/trunk@11008 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100
2011-05-23 11:25:50 +00:00
parent 2b00bd8c47
commit cf1a7f6df7
9 changed files with 21 additions and 4 deletions
@@ -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);