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,
|
.reply .menu-button,
|
||||||
.op .menu-button,
|
.op .menu-button,
|
||||||
#thread-watcher .menu-button {
|
#thread-watcher .menu-button {
|
||||||
margin-left: -5px !important;
|
margin-left: -1px !important;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.op .menu-button,
|
.op .menu-button,
|
||||||
|
|||||||
@ -14,19 +14,14 @@ Menu =
|
|||||||
$.add @nodes.info, Menu.makeButton()
|
$.add @nodes.info, Menu.makeButton()
|
||||||
|
|
||||||
makeButton: do ->
|
makeButton: do ->
|
||||||
frag = null
|
a = $.el 'a',
|
||||||
|
className: 'menu-button'
|
||||||
|
innerHTML: '<i class="fa fa-angle-down"></i>'
|
||||||
|
href: 'javascript:;'
|
||||||
->
|
->
|
||||||
unless frag?
|
button = a.cloneNode true
|
||||||
frag = $.nodes [
|
$.on button, 'click', Menu.toggle
|
||||||
$.tn(' ')
|
button
|
||||||
$.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
|
|
||||||
|
|
||||||
toggle: (e) ->
|
toggle: (e) ->
|
||||||
post = Get.postFromNode @
|
post = Get.postFromNode @
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user