{footer_script} var rotateImagesMessage = "{'Images rotation in progress...'|@translate}"; var autoRotateOptionText = "{'auto (EXIF orientation tag)'|@translate}"; var ri_pwg_token = '{$RI_PWG_TOKEN}'; {literal} jQuery(document).ready(function() { function autoRotateOption() { if (jQuery("#rotate_hd").is(':checked')) { jQuery("") .attr("id", "autoRotateOption") .attr("value", "auto") .attr("selected", "selected") .text(autoRotateOptionText) .appendTo('select[name="rotate_angle"]') ; } else { jQuery("#autoRotateOption").remove(); } } autoRotateOption(); jQuery('#rotate_hd').click(function() { autoRotateOption(); }); jQuery('#applyAction').click(function(e) { if (elements.length != 0) { return true; } else if (jQuery('[name="selectAction"]').val() == 'rotateImg') { angle = jQuery('select[name="rotate_angle"]').val(); rotate_hd = jQuery("#rotate_hd").is(':checked'); e.stopPropagation(); } else { return true; } jQuery('.bulkAction').hide(); jQuery('#regenerationText').html(rotateImagesMessage); var maxRequests=1; var queuedManager = jQuery.manageAjax.create('queued', { queue: true, cacheResponse: false, maxRequests: maxRequests }); if (jQuery('input[name="setSelected"]').attr('checked')) elements = all_elements; else jQuery('input[name="selection[]"]').each(function() { if (jQuery(this).attr('checked')) { elements.push(jQuery(this).val()); } }); progressBar_max = elements.length; todo = 0; jQuery('#applyActionBlock').hide(); jQuery('select[name="selectAction"]').hide(); jQuery('#regenerationMsg').show(); jQuery('#progressBar').progressBar(0, { max: progressBar_max, textFormat: 'fraction', boxImage: 'themes/default/images/progressbar.gif', barImage: 'themes/default/images/progressbg_orange.gif' }); for (i=0;i {if $library != 'gd'} {'Also rotate HD image'|@translate} {/if} {'Angle'|@translate} {foreach from=$angles item=angle} {$angle.name} {/foreach}
{'Also rotate HD image'|@translate}
{'Angle'|@translate} {foreach from=$angles item=angle} {$angle.name} {/foreach}