Merge from Appchan X: src/Menu
excluded: Labels.coffee
This commit is contained in:
parent
5b3ed17296
commit
eaec80f5a5
@ -1,6 +1,6 @@
|
||||
ArchiveLink =
|
||||
init: ->
|
||||
return if g.VIEW not in ['index', 'thread'] or !Conf['Menu'] or !Conf['Archive Link']
|
||||
return unless g.VIEW in ['index', 'thread'] and Conf['Menu'] and Conf['Archive Link']
|
||||
|
||||
div = $.el 'div',
|
||||
textContent: 'Archive'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
DeleteLink =
|
||||
init: ->
|
||||
return if g.VIEW not in ['index', 'thread'] or !Conf['Menu'] or !Conf['Delete Link']
|
||||
return unless g.VIEW in ['index', 'thread'] and Conf['Menu'] and Conf['Delete Link']
|
||||
|
||||
div = $.el 'div',
|
||||
className: 'delete-link'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
DownloadLink =
|
||||
init: ->
|
||||
return if g.VIEW not in ['index', 'thread'] or !Conf['Menu'] or !Conf['Download Link']
|
||||
return unless g.VIEW in ['index', 'thread'] and Conf['Menu'] and Conf['Download Link']
|
||||
|
||||
a = $.el 'a',
|
||||
className: 'download-link'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Menu =
|
||||
init: ->
|
||||
return if g.VIEW not in ['index', 'thread'] or !Conf['Menu']
|
||||
return unless g.VIEW in ['index', 'thread'] and Conf['Menu']
|
||||
|
||||
@button = $.el 'a',
|
||||
className: 'menu-button'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
ReportLink =
|
||||
init: ->
|
||||
return if g.VIEW not in ['index', 'thread'] or !Conf['Menu'] or !Conf['Report Link']
|
||||
return unless g.VIEW in ['index', 'thread'] and Conf['Menu'] and Conf['Report Link']
|
||||
|
||||
a = $.el 'a',
|
||||
className: 'report-link'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user