- Timestamp:
- Mar 29, 2011, 8:48:13 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/regenerateThumbnails/element_set_global_action.tpl
r9917 r9922 15 15 jQuery(document).ready(function() { 16 16 jQuery('#applyAction').click(function() { 17 if (jQuery(' select[name="selectAction"]').val() == 'regenerateThumbnails') {17 if (jQuery('[name="selectAction"]').val() == 'regenerateThumbnails') { 18 18 elements = new Array(); 19 19 if (jQuery('input[name="setSelected"]').attr('checked')) … … 25 25 } 26 26 }); 27 27 28 maxwidth = jQuery('input[name="thumb_maxwidth"]').val(); 28 29 maxheight = jQuery('input[name="thumb_maxheight"]').val(); … … 58 59 }); 59 60 if (todo == progressBar_max) 60 window.location = redirect +'®eneratedThumbnail='+todo;61 window.location = redirect; 61 62 }) 62 63 }); … … 74 75 <td><input type="checkbox" name="square" id="square" {if $SQUARE}checked="checked"{/if}></td> 75 76 </tr> 77 {footer_script require='jquery'}{literal} 78 jQuery().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} 76 94 {else} 77 95 <tr><td><input type="checkbox" name="square" id="square" style="display:none;"></td></tr>
Note: See TracChangeset
for help on using the changeset viewer.