diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-16 23:49:57 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-16 23:49:57 +1000 |
| commit | 5774d2163280406aa74344d547bbe8f8a481c8c1 (patch) | |
| tree | 003c63f145e8565d9a797c1c6ff3da1fa15a6636 /js/post-hover.js | |
| parent | 0565e2119d54cb4be8c6931ee42acfb586188893 (diff) | |
Post hover: hide images when need to
Diffstat (limited to 'js/post-hover.js')
| -rw-r--r-- | js/post-hover.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/post-hover.js b/js/post-hover.js index 48f0ed96..f4dc9909 100644 --- a/js/post-hover.js +++ b/js/post-hover.js @@ -69,9 +69,11 @@ onready(function(){ context: document.body, success: function(data) { $(data).find('div.post.reply').each(function() { + // Not 100% sure that this doesn't break shit: + $(document).trigger('new_post', this); + if($('#' + $(this).attr('id')).length == 0) $('div.post:first').prepend($(this).css('display', 'none').addClass('hidden')); - }); $post = $('div.post#reply_' + id); |
