Slightly faster PostHiding.makeButton().
This commit is contained in:
parent
8227d935cd
commit
4e0e881172
@ -111,10 +111,12 @@ PostHiding =
|
|||||||
$.event 'CloseMenu'
|
$.event 'CloseMenu'
|
||||||
|
|
||||||
makeButton: (post, type) ->
|
makeButton: (post, type) ->
|
||||||
|
span = $.el 'span',
|
||||||
|
textContent: "[\u00A0#{if type is 'hide' then '-' else '+'}\u00A0]"
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
className: "#{type}-reply-button"
|
className: "#{type}-reply-button"
|
||||||
innerHTML: "<span>[ #{if type is 'hide' then '-' else '+'} ]</span>"
|
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
|
$.add a, span
|
||||||
$.on a, 'click', PostHiding.toggle
|
$.on a, 'click', PostHiding.toggle
|
||||||
a
|
a
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user