Changeset 11008


Ignore:
Timestamp:
May 23, 2011, 1:25:50 PM (10 years ago)
Author:
mistic100
Message:

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

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r10970 r11008  
    21012101{
    21022102  $result = pwg_query($query);
     2103 
    21032104  $taglist = array();
    21042105  while ($row = pwg_db_fetch_assoc($result))
     
    21122113      );
    21132114  }
    2114 
     2115 
     2116  $cmp = create_function('$a,$b', 'return strcasecmp($a["name"], $b["name"]);');
     2117  usort($taglist, $cmp);
     2118 
    21152119  return $taglist;
    21162120}
  • trunk/admin/themes/default/template/batch_manager_global.tpl

    r10970 r11008  
    2020        noResultsText: '{'No results'|@translate}',
    2121        searchingText: '{'Searching...'|@translate}',
     22        newText: ' ({'new'|@translate})',
    2223        animateDropdown: false,
    2324        preventDuplicates: true,
  • trunk/admin/themes/default/template/batch_manager_unit.tpl

    r10970 r11008  
    2424        noResultsText: '{'No results'|@translate}',
    2525        searchingText: '{'Searching...'|@translate}',
     26        newText: ' ({'new'|@translate})',
    2627        animateDropdown: false,
    2728        preventDuplicates: true,
  • trunk/admin/themes/default/template/picture_modify.tpl

    r10970 r11008  
    1414        noResultsText: '{'No results'|@translate}',
    1515        searchingText: '{'Searching...'|@translate}',
     16        newText: ' ({'new'|@translate})',
    1617        animateDropdown: false,
    1718        preventDuplicates: true,
  • trunk/admin/themes/default/theme.css

    r10970 r11008  
    10231023li.token-input-token span {color: #a6b3cf;margin-left: 5px;font-weight: bold;cursor: pointer;}
    10241024li.token-input-selected-token {background-color: #5670a6;border: 1px solid #3b5998;color: #fff;}
    1025 li.token-input-input-token {float: left;margin: 0;padding: 0;list-style-type: none;}
     1025li.token-input-input-token {float: left;margin: 0;padding: 0;list-style-type: none;width:10px;}
    10261026div.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;}
    10271027div.token-input-dropdown p {margin: 0;padding: 5px;font-weight: bold;color: #777;}
  • trunk/admin/themes/roma/theme.css

    r10305 r11008  
    250250#batchManagerGlobal #selectedMessage {background-color:#555; color:#ddd;}
    251251
     252/* TokenInput (with Facebook style for ROMA) */
     253ul.token-input-list {border-color:#666;background-color:#444;}
     254ul.token-input-list li input {background-color:#444;}
     255li.token-input-token span {color:#878787;}
     256div.token-input-dropdown {background-color:#eee;border-color:#666;}
     257div.token-input-dropdown ul li {background-color:#eee;}
     258div.token-input-dropdown ul li.token-input-selected-dropdown-item {background-color:#FF7800;}
  • trunk/language/en_UK/admin.lang.php

    r10970 r11008  
    432432$lang['Move'] = "Move";
    433433$lang['Name'] = "Name";
     434$lang['new'] = "new";
    434435$lang['New name'] = "New name";
    435436$lang['New parent album'] = "New parent album";
  • trunk/language/fr_FR/admin.lang.php

    r10970 r11008  
    846846$lang['Type in a search term'] = "Entrez un terme de recherche";
    847847$lang['Searching...'] = "Recherche...";
     848$lang['new'] = "nouveau";
    848849?>
  • trunk/themes/default/js/plugins/jquery.tokeninput.js

    r10970 r11008  
    2222    noResultsText: "No results",
    2323    searchingText: "Searching...",
     24    newText: "(new)",
    2425    deleteText: "×",
    2526    searchDelay: 300,
     
    706707                 
    707708                  if(settings.allowCreation) {
    708                       results.push({name: input_box.val() + ' (new)', id: input_box.val()});
     709                      results.push({name: input_box.val() + settings.newText, id: input_box.val()});
    709710                  }
    710711                  cache.add(query, settings.jsonContainer ? results[settings.jsonContainer] : results);
     
    729730               
    730731                if(settings.allowCreation) {
    731                     results.push({name: input_box.val() + ' (new)', id: input_box.val()});
     732                    results.push({name: input_box.val() + settings.newText, id: input_box.val()});
    732733                }
    733734               
Note: See TracChangeset for help on using the changeset viewer.