Changeset 25835


Ignore:
Timestamp:
Dec 7, 2013, 9:28:23 PM (7 years ago)
Author:
mistic100
Message:

fix url used by multiview + increase media-query limit + hide text without extra markup

Location:
extensions/AdminTools/template
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/AdminTools/template/public_controller.js

    r25818 r25835  
    101101
    102102  // attach jquery handlers
    103   this.init = function() {
     103  this.init = function(urlSelf) {
    104104    $('body').prepend($ato); // ensure the bar is at the begining
    105105
     
    148148    $ato.find('.switcher').on({
    149149      'change': function() {
    150         window.location.href = '{$ato.U_SELF}ato_'+ $(this).data('type') +'='+ $(this).val();
     150        window.location.href = urlSelf + 'ato_'+ $(this).data('type') +'='+ $(this).val();
    151151      },
    152152      'click': function(e) {
  • extensions/AdminTools/template/public_controller.tpl

    r25833 r25835  
    4242  AdminTools.deleteCache();
    4343{/if}
    44   AdminTools.init();
     44  AdminTools.init("{$ato.U_SELF}");
    4545{if $themeconf.mobile}
    4646  AdminTools.initMobile();
     
    6767  <ul id="ato_header_root">
    6868    <li><a href="#" class="icon-ato-cancel close-panel"></a></li>
    69     <li class="parent"><a href="#" class="icon-menu"><span class="atoHideable1">{'Administration'|translate}</span></a>
     69    <li class="parent"><a href="#" class="icon-menu ato-hide-1">{'Administration'|translate}</a>
    7070      <ul>
    7171        <li><a class="icon-picture" href="{$ato.U_SITE_ADMIN}batch_manager">{'Photos'|translate}</a></li>
     
    7878    </li>
    7979  {if isset($ato.U_EDIT)}
    80     <li class="parent"><a href="#" class="icon-pencil"><span class="atoHideable2">{'Edit'|translate}</span></a>
     80    <li class="parent"><a href="#" class="icon-pencil ato-hide-2">{'Edit'|translate}</a>
    8181      <ul>
    8282        <li><a href="#ato_quick_edit" class="icon-ato-flash edit-quick">{'Quick edit'|translate}</a></li>
     
    9090  {/if}
    9191  {if isset($ato.U_SET_REPRESENTATIVE)}
    92     <li {if $ato.IS_REPRESENTATIVE}class="disabled"{/if}><a class="icon-ato-trophy set-representative" href="{$ato.U_SET_REPRESENTATIVE}"><span class="atoHideable2">{'representative'|translate|ucfirst}</span></a></li>
     92    <li {if $ato.IS_REPRESENTATIVE}class="disabled"{/if}><a class="icon-ato-trophy set-representative ato-hide-2" href="{$ato.U_SET_REPRESENTATIVE}">{'representative'|translate|ucfirst}</a></li>
    9393  {/if}
    9494  {if isset($ato.U_CADDIE)}
    95     <li {if $ato.IS_IN_CADDIE}class="disabled"{/if}><a class="icon-ato-flag add-caddie" href="{$ato.U_CADDIE}"><span class="atoHideable2">{'Add to caddie'|translate}</span></a></li>
     95    <li {if $ato.IS_IN_CADDIE}class="disabled"{/if}><a class="icon-ato-flag add-caddie ato-hide-2" href="{$ato.U_CADDIE}">{'Add to caddie'|translate}</a></li>
    9696  {/if}
    9797  {if isset($ato.IS_CATEGORY)}
    98     <li><a class="icon-plus-circled" href="{$ato.U_SITE_ADMIN}photos_add&amp;album={$ato.CATEGORY_ID}"><span class="atoHideable2">{'Add Photos'|translate}</span></a></li>
     98    <li><a class="icon-plus-circled ato-hide-2" href="{$ato.U_SITE_ADMIN}photos_add&amp;album={$ato.CATEGORY_ID}">{'Add Photos'|translate}</a></li>
    9999  {/if}
    100100
    101     <li class="parent right multiview"><a class="icon-cog-alt" href="#"><span class="atoHideable1">{'Tools'|translate}</span></a>
     101    <li class="parent right multiview"><a class="icon-cog-alt ato-hide-1" href="#">{'Tools'|translate}</a>
    102102      <ul>
    103103        <li><label>{'View as'|translate}</label>
  • extensions/AdminTools/template/style.css

    r25833 r25835  
    194194
    195195@media (max-width:640px) {
    196         .atoHideable1 {
    197                 display:none;
    198         }
    199 }
    200 
    201 @media (max-width:360px) {
    202         .atoHideable2 {
    203                 display:none;
    204         }
    205 }
     196  #ato_header_root li a.ato-hide-1 {
     197    font-size:0px;
     198    line-height:0px;
     199  }
     200  #ato_header_root li a.ato-hide-1:before {
     201    margin-right:0;
     202  }
     203}
     204
     205@media (max-width:500px) {
     206  #ato_header_root li a.ato-hide-2 {
     207    font-size:0px;
     208    line-height:0px;
     209  }
     210  #ato_header_root li a.ato-hide-2:before {
     211    margin-right:0;
     212  }
     213}
Note: See TracChangeset for help on using the changeset viewer.