1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-18 03:37:35 +01:00

Disallow multiple Shrink all images appearing

This commit is contained in:
8chan 2014-09-27 00:44:55 +00:00
parent f16f88966c
commit 5e62e7a143

View File

@ -27,7 +27,10 @@ onready(function(){
$(this).parent().click();
});
$('hr:first').before('<div id="shrink-all-images" style="text-align:right"><a class="unimportant" href="javascript:void(0)"></a></div>');
if (!$('#shrink-all-images').length) {
$('hr:first').before('<div id="shrink-all-images" style="text-align:right"><a class="unimportant" href="javascript:void(0)"></a></div>');
}
$('div#shrink-all-images a')
.text(_('Shrink all images'))
.click(function(){