Merge from Appchan X: src/Menu

excluded: Labels.coffee
This commit is contained in:
ccd0 2015-01-31 00:51:44 -08:00
parent 5b3ed17296
commit eaec80f5a5
5 changed files with 5 additions and 5 deletions

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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'