From 1cc5da0f137e333c485a83f898f0fdbf8f6b6a65 Mon Sep 17 00:00:00 2001 From: wholelotofhs Date: Fri, 23 Jan 2015 04:39:55 -0500 Subject: [PATCH] Moved the post hide link to the left side Several users on /meta/ have voiced their displeasure over the hide post button appearing on the right side of posts by default, and they suggested moving it to the left side to be consistent with the hide thread button. --- js/hide-threads.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/js/hide-threads.js b/js/hide-threads.js index 64f0a384..bc1526eb 100644 --- a/js/hide-threads.js +++ b/js/hide-threads.js @@ -87,23 +87,22 @@ $(document).ready(function(){ hidden_data[board] = {}; // id : timestamp } - $('[–]') - .insertAfter(post.children('p.intro').children('a.post_no:last')) + $('[–]') + .insertBefore(post.children('p.intro').children('input.delete')) .click(function() { hidden_data[board][id] = Math.round(Date.now() / 1000); store_data(); var hide_link = $(this); post.children('div').hide(); hide_link.hide(); - $('[+]') - .insertAfter(post.children('p.intro').children('a.post_no:last')) + $('[+]') + .insertBefore(post.children('p.intro').children('input.delete')) .click(function() { delete hidden_data[board][id]; store_data(); post.children('div').show(); hide_link.show(); $(this).remove(); - }); }); if (hidden_data[board][id])