Fix post hiding buttons

This commit is contained in:
Zixaphir 2014-03-09 15:28:22 -07:00
parent c7b044cc8e
commit 3eb1ae0110
3 changed files with 16 additions and 10 deletions

View File

@ -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',

View File

@ -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',

View File

@ -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'