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