You could use an iframe and set the iframe src to the download instead.
$( ".selected" ).each(function () {
var $href = $(this).parent().children('img').attr('src'),
$hrefShort = $href.replace('http://example.com/plugins/content/gallery/gallery/thumbs/', 'images\Pics/');
var $iframe = $('<iframe />');
$iframe.attr('src', "/plugins/content/jw_sigpro/jw_sigpro/includes/download.php?file=" + $hrefShort);
$iframe.css('visibility', 'hidden');
$iframe.css('height', '0');
$iframe.appendTo(document.body);
});
You could then clean up the iframes (e.g. remove them from the DOM) if you really wanted to, but you shouldn't need to.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…