forked from leftypol/leftypol
Disallow multiple Shrink all images appearing
fixes vichan-devel#91
This commit is contained in:
parent
56f3d89774
commit
6fd3b64c67
1 changed files with 4 additions and 1 deletions
|
@ -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(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue