mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +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:
@@ -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))
|
||||
{
|
||||
@@ -2111,7 +2112,10 @@ 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;}
|
||||
|
||||
Reference in New Issue
Block a user