menu bugfixes
This commit is contained in:
parent
934f54302a
commit
b99ac6d53a
@ -197,7 +197,7 @@ PostHiding =
|
|||||||
className: 'stub'
|
className: 'stub'
|
||||||
$.add post.nodes.stub, a
|
$.add post.nodes.stub, a
|
||||||
if Conf['Menu']
|
if Conf['Menu']
|
||||||
$.add post.nodes.stub, Menu.makeButton()
|
$.add post.nodes.stub, Menu.makeButton post
|
||||||
$.prepend post.nodes.root, post.nodes.stub
|
$.prepend post.nodes.root, post.nodes.stub
|
||||||
|
|
||||||
show: (post, showRecursively=Conf['Recursive Hiding']) ->
|
show: (post, showRecursively=Conf['Recursive Hiding']) ->
|
||||||
|
|||||||
@ -97,7 +97,7 @@ ThreadHiding =
|
|||||||
el: div
|
el: div
|
||||||
order: 20
|
order: 20
|
||||||
open: ({thread, isReply}) ->
|
open: ({thread, isReply}) ->
|
||||||
if isReply or !thread.isHidden
|
if isReply or !thread.isHidden or Conf['JSON Navigation'] and Conf['Index Mode'] is 'catalog'
|
||||||
return false
|
return false
|
||||||
ThreadHiding.menu.thread = thread
|
ThreadHiding.menu.thread = thread
|
||||||
true
|
true
|
||||||
@ -111,7 +111,7 @@ ThreadHiding =
|
|||||||
el: hideStubLink
|
el: hideStubLink
|
||||||
order: 15
|
order: 15
|
||||||
open: ({thread, isReply}) ->
|
open: ({thread, isReply}) ->
|
||||||
if isReply or !thread.isHidden
|
if isReply or !thread.isHidden or Conf['JSON Navigation'] and Conf['Index Mode'] is 'catalog'
|
||||||
return false
|
return false
|
||||||
ThreadHiding.menu.thread = thread
|
ThreadHiding.menu.thread = thread
|
||||||
|
|
||||||
@ -155,7 +155,7 @@ ThreadHiding =
|
|||||||
thread.stub = $.el 'div',
|
thread.stub = $.el 'div',
|
||||||
className: 'stub'
|
className: 'stub'
|
||||||
if Conf['Menu']
|
if Conf['Menu']
|
||||||
$.add thread.stub, [a, Menu.makeButton()]
|
$.add thread.stub, [a, Menu.makeButton thread.OP]
|
||||||
else
|
else
|
||||||
$.add thread.stub, a
|
$.add thread.stub, a
|
||||||
$.prepend root, thread.stub
|
$.prepend root, thread.stub
|
||||||
|
|||||||
@ -138,11 +138,11 @@ Index =
|
|||||||
|
|
||||||
menu:
|
menu:
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW isnt 'index' or !Conf['JSON Navigation'] or !Conf['Menu'] or g.BOARD.ID is 'f'
|
return if g.VIEW isnt 'index' or !Conf['JSON Navigation'] or !Conf['Menu'] or !Conf['Thread Hiding Link'] or g.BOARD.ID is 'f'
|
||||||
|
|
||||||
Menu.menu.addEntry
|
Menu.menu.addEntry
|
||||||
el: $.el 'a', href: 'javascript:;'
|
el: $.el 'a', href: 'javascript:;'
|
||||||
order: 5
|
order: 20
|
||||||
open: ({thread}) ->
|
open: ({thread}) ->
|
||||||
return false if Conf['Index Mode'] isnt 'catalog'
|
return false if Conf['Index Mode'] isnt 'catalog'
|
||||||
@el.textContent = if thread.isHidden
|
@el.textContent = if thread.isHidden
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user