Skip to content

Commit

Permalink
image-spoiler.js: fix dom path
Browse files Browse the repository at this point in the history
  • Loading branch information
twiforce committed Aug 15, 2014
1 parent 8723b10 commit 6549f5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/image-spoiler.js
Expand Up @@ -18,8 +18,8 @@ $(document).ready(function(){
if ($(this).parent().attr("data-expanded") != 'true') {
$(this).attr("src","http://static.syn-ch.com/spoiler.png");
$(this).css({
"width": '128px',
"height": '128px'
"width": 'auto',
"height": 'auto'
});
}
if (settings.neverOpenSpoiler) {
Expand All @@ -29,10 +29,10 @@ $(document).ready(function(){
}
};

$('div.post > a > img').each(do_hideSpoiledImages);
$('div.post > .media > a > img').each(do_hideSpoiledImages);

$(document).bind("new_post", function(e, post) {
$('div.post > a > img').each(do_hideSpoiledImages);
$('div.post > .media > a > img').each(do_hideSpoiledImages);
});
}
});

0 comments on commit 6549f5f

Please sign in to comment.