From 3eb1ae0110121f94c80cda3e43e9a79f0d81ab00 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sun, 9 Mar 2014 15:28:22 -0700 Subject: [PATCH] Fix post hiding buttons --- builds/appchan-x.user.js | 10 ++++++---- builds/crx/script.js | 10 ++++++---- src/Filtering/PostHiding.coffee | 6 ++++-- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 3c369d106..cd8cc4d1e 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -6938,12 +6938,14 @@ init: function() { this.db = new DataBoard('hiddenPosts'); this.hideButton = $.el('a', { - className: 'hide-post-button fa fa-minus-square-o', - href: 'javascript:;' + className: 'hide-post-button fa', + href: 'javascript:;', + textContent: '\uf147' }); this.showButton = $.el('a', { - className: 'show-post-button fa fa-plus-square-o', - href: 'javascript:;' + className: 'show-post-button fa', + href: 'javascript:;', + textContext: '\uf196' }); Post.callbacks.push({ name: 'Post Hiding', diff --git a/builds/crx/script.js b/builds/crx/script.js index 3bd1fe940..7480658c4 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -6989,12 +6989,14 @@ init: function() { this.db = new DataBoard('hiddenPosts'); this.hideButton = $.el('a', { - className: 'hide-post-button fa fa-minus-square-o', - href: 'javascript:;' + className: 'hide-post-button fa', + href: 'javascript:;', + textContent: '\uf147' }); this.showButton = $.el('a', { - className: 'show-post-button fa fa-plus-square-o', - href: 'javascript:;' + className: 'show-post-button fa', + href: 'javascript:;', + textContext: '\uf196' }); Post.callbacks.push({ name: 'Post Hiding', diff --git a/src/Filtering/PostHiding.coffee b/src/Filtering/PostHiding.coffee index eff727c9b..93ae4ac9c 100644 --- a/src/Filtering/PostHiding.coffee +++ b/src/Filtering/PostHiding.coffee @@ -2,11 +2,13 @@ PostHiding = init: -> @db = new DataBoard 'hiddenPosts' @hideButton = $.el 'a', - className: 'hide-post-button fa fa-minus-square-o' + className: 'hide-post-button fa' href: 'javascript:;' + textContent: '\uf147' @showButton = $.el 'a', - className: 'show-post-button fa fa-plus-square-o' + className: 'show-post-button fa' href: 'javascript:;' + textContext: '\uf196' Post.callbacks.push name: 'Post Hiding'