Revert a bit of menu code for #240
This commit is contained in:
parent
1c253782e8
commit
d914619e69
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1099,7 +1099,7 @@ a:only-of-type > .remove {
|
||||
.reply .menu-button,
|
||||
.op .menu-button,
|
||||
#thread-watcher .menu-button {
|
||||
margin-left: -5px !important;
|
||||
margin-left: -1px !important;
|
||||
position: relative;
|
||||
}
|
||||
.op .menu-button,
|
||||
|
||||
@ -14,19 +14,14 @@ Menu =
|
||||
$.add @nodes.info, Menu.makeButton()
|
||||
|
||||
makeButton: do ->
|
||||
frag = null
|
||||
a = $.el 'a',
|
||||
className: 'menu-button'
|
||||
innerHTML: '<i class="fa fa-angle-down"></i>'
|
||||
href: 'javascript:;'
|
||||
->
|
||||
unless frag?
|
||||
frag = $.nodes [
|
||||
$.tn(' ')
|
||||
$.el 'a',
|
||||
className: 'menu-button'
|
||||
innerHTML: '<i class="fa fa-angle-down"></i>'
|
||||
href: 'javascript:;'
|
||||
]
|
||||
clone = frag.cloneNode true
|
||||
$.on clone.lastElementChild, 'click', Menu.toggle
|
||||
clone
|
||||
button = a.cloneNode true
|
||||
$.on button, 'click', Menu.toggle
|
||||
button
|
||||
|
||||
toggle: (e) ->
|
||||
post = Get.postFromNode @
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user