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:
parent
2b00bd8c47
commit
cf1a7f6df7
9 changed files with 21 additions and 4 deletions
|
|
@ -2100,6 +2100,7 @@ function get_active_menu($menu_page)
|
|||
function get_fckb_taglist($query)
|
||||
{
|
||||
$result = pwg_query($query);
|
||||
|
||||
$taglist = array();
|
||||
while ($row = pwg_db_fetch_assoc($result))
|
||||
{
|
||||
|
|
@ -2112,6 +2113,9 @@ function get_fckb_taglist($query)
|
|||
);
|
||||
}
|
||||
|
||||
$cmp = create_function('$a,$b', 'return strcasecmp($a["name"], $b["name"]);');
|
||||
usort($taglist, $cmp);
|
||||
|
||||
return $taglist;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ jQuery(document).ready(function() {
|
|||
hintText: '{'Type in a search term'|@translate}',
|
||||
noResultsText: '{'No results'|@translate}',
|
||||
searchingText: '{'Searching...'|@translate}',
|
||||
newText: ' ({'new'|@translate})',
|
||||
animateDropdown: false,
|
||||
preventDuplicates: true,
|
||||
allowCreation: true
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ jQuery(document).ready(function() {
|
|||
hintText: '{'Type in a search term'|@translate}',
|
||||
noResultsText: '{'No results'|@translate}',
|
||||
searchingText: '{'Searching...'|@translate}',
|
||||
newText: ' ({'new'|@translate})',
|
||||
animateDropdown: false,
|
||||
preventDuplicates: true,
|
||||
allowCreation: true
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ jQuery(document).ready(function() {
|
|||
hintText: '{'Type in a search term'|@translate}',
|
||||
noResultsText: '{'No results'|@translate}',
|
||||
searchingText: '{'Searching...'|@translate}',
|
||||
newText: ' ({'new'|@translate})',
|
||||
animateDropdown: false,
|
||||
preventDuplicates: true,
|
||||
allowCreation: true
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,7 @@ li.token-input-token {overflow: hidden; height: auto !important; height: 15px;ma
|
|||
li.token-input-token p {display: inline;padding: 0;margin: 0;}
|
||||
li.token-input-token span {color: #a6b3cf;margin-left: 5px;font-weight: bold;cursor: pointer;}
|
||||
li.token-input-selected-token {background-color: #5670a6;border: 1px solid #3b5998;color: #fff;}
|
||||
li.token-input-input-token {float: left;margin: 0;padding: 0;list-style-type: none;}
|
||||
li.token-input-input-token {float: left;margin: 0;padding: 0;list-style-type: none;width:10px;}
|
||||
div.token-input-dropdown {position: absolute;width: 400px;background-color: #fff;overflow: hidden;border-left: 1px solid #ccc;border-right: 1px solid #ccc;border-bottom: 1px solid #ccc;cursor: default;font-size: 11px;font-family: Verdana;z-index: 1;}
|
||||
div.token-input-dropdown p {margin: 0;padding: 5px;font-weight: bold;color: #777;}
|
||||
div.token-input-dropdown ul {margin: 0;padding: 0;}
|
||||
|
|
|
|||
|
|
@ -249,3 +249,10 @@ display:block; height:85px; left:225px; position:relative; top:-42px; width:313p
|
|||
#batchManagerGlobal .thumbSelected {background-color:#555 !important}
|
||||
#batchManagerGlobal #selectedMessage {background-color:#555; color:#ddd;}
|
||||
|
||||
/* TokenInput (with Facebook style for ROMA) */
|
||||
ul.token-input-list {border-color:#666;background-color:#444;}
|
||||
ul.token-input-list li input {background-color:#444;}
|
||||
li.token-input-token span {color:#878787;}
|
||||
div.token-input-dropdown {background-color:#eee;border-color:#666;}
|
||||
div.token-input-dropdown ul li {background-color:#eee;}
|
||||
div.token-input-dropdown ul li.token-input-selected-dropdown-item {background-color:#FF7800;}
|
||||
|
|
|
|||
|
|
@ -431,6 +431,7 @@ $lang['Month'] = "Month";
|
|||
$lang['Move albums'] = "Move albums";
|
||||
$lang['Move'] = "Move";
|
||||
$lang['Name'] = "Name";
|
||||
$lang['new'] = "new";
|
||||
$lang['New name'] = "New name";
|
||||
$lang['New parent album'] = "New parent album";
|
||||
$lang['New photos added'] = "New photos added";
|
||||
|
|
|
|||
|
|
@ -845,4 +845,5 @@ $lang['Show menubar'] = "Afficher le menu";
|
|||
$lang['No results'] = "Pas de résultat";
|
||||
$lang['Type in a search term'] = "Entrez un terme de recherche";
|
||||
$lang['Searching...'] = "Recherche...";
|
||||
$lang['new'] = "nouveau";
|
||||
?>
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue