Ignore:
Timestamp:
Mar 29, 2011, 8:48:13 PM (13 years ago)
Author:
patdenice
Message:

Add tab to thumbnail page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/regenerateThumbnails/element_set_global_action.tpl

    r9917 r9922  
    1515jQuery(document).ready(function() {
    1616  jQuery('#applyAction').click(function() {
    17     if (jQuery('select[name="selectAction"]').val() == 'regenerateThumbnails') {
     17    if (jQuery('[name="selectAction"]').val() == 'regenerateThumbnails') {
    1818      elements = new Array();
    1919      if (jQuery('input[name="setSelected"]').attr('checked'))
     
    2525          }
    2626        });
     27
    2728      maxwidth = jQuery('input[name="thumb_maxwidth"]').val();
    2829      maxheight = jQuery('input[name="thumb_maxheight"]').val();
     
    5859              });
    5960            if (todo == progressBar_max)
    60               window.location = redirect+'&regeneratedThumbnail='+todo;
     61              window.location = redirect;
    6162          })
    6263        });
     
    7475  <td><input type="checkbox" name="square" id="square" {if $SQUARE}checked="checked"{/if}></td>
    7576</tr>
     77{footer_script require='jquery'}{literal}
     78jQuery().ready(function(){
     79  jQuery("input[name^='thumb_max']").keyup(function(){
     80    if(jQuery("#square").attr("checked")){
     81      if (this.name == "thumb_maxwidth"){
     82        jQuery("input[name='thumb_maxheight']").attr("value", this.value);
     83      }else{
     84        jQuery("input[name='thumb_maxwidth']").attr("value", this.value);
     85      }
     86    }
     87  });
     88  jQuery("#square").click(function(){
     89    if (this.checked)
     90      jQuery("input[name^='thumb_maxheight']").attr("value", jQuery("input[name^='thumb_maxwidth']").attr("value"));
     91  });
     92});
     93{/literal}{/footer_script}
    7694{else}
    7795<tr><td><input type="checkbox" name="square" id="square" style="display:none;"></td></tr>
Note: See TracChangeset for help on using the changeset viewer.