{footer_script require='jquery'} var batchdown_count = {$BATCH_DWN_COUNT}; var batchdown_string = "{'Confirm the download of %d pictures?'|@translate}"; {literal} jQuery().ready(function() { jQuery("#batchDownloadLink").click(function() { var elt = jQuery("#batchDownloadBox"); elt.css("left", Math.min( jQuery(this).offset().left, jQuery(window).width() - elt.outerWidth(true) - 5)) .css("top", jQuery(this).offset().top + jQuery(this).outerHeight(true)) .toggle(); return false; }); jQuery("#batchDownloadBox").on("mouseleave click", function() { jQuery(this).hide(); }); jQuery("#batchDownloadBox a").click(function() { return confirm(batchdown_string.replace('%d', batchdown_count)); }); }); {/literal}{/footer_script} {html_style}{literal} .downloadSizeDetails {font-style:italic; font-size:80%;} {/literal}{/html_style}