Changeset 24983 for trunk


Ignore:
Timestamp:
Oct 18, 2013, 9:20:55 PM (11 years ago)
Author:
plg
Message:

merge r24982 from branch 2.5 to trunk

bug 2967 fixed: avoid display changes when album list is long to load. Replace
input text for position to input hidden. It was a fallback when javascript is
deactivated, but nowadays Piwigo administration can't work without javascript.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/cat_list.tpl

    r24980 r24983  
    11{footer_script require='jquery.ui.sortable'}{literal}
    22jQuery(document).ready(function(){
    3   jQuery(".catPos").hide();
    43  jQuery(".drag_button").show();
    5   jQuery("#manualOrder").hide();
    64  jQuery(".categoryLi").css("cursor","move");
    75  jQuery(".categoryUl").sortable({
     
    105103<form id="categoryOrdering" action="{$F_ACTION}" method="post">
    106104  <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
    107   <p id="manualOrder">
     105  <p id="manualOrder" style="display:none">
    108106    <input class="submit" name="submitManualOrder" type="submit" value="{'Save manual order'|@translate}">
    109107    {'... or '|@translate} <a href="#" id="cancelManualOrder">{'cancel manual order'|@translate}</a>
     
    120118      </p>
    121119
    122       <p class="catPos">
    123         <label>
    124           {'Position'|@translate} :
    125           <input type="text" size="4" name="catOrd[{$category.ID}]" maxlength="4" value="{$category.RANK}">
    126         </label>
    127       </p>
     120      <input type="hidden" name="catOrd[{$category.ID}]" value="{$category.RANK}">
    128121
    129122      <p class="albumActions">
Note: See TracChangeset for help on using the changeset viewer.