mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user