Don't try to add edit link when menu isn't there.

This commit is contained in:
ccd0 2016-02-14 14:28:44 -08:00
parent a4eb04ce6b
commit 1d0ffff41b

View File

@ -1,7 +1,7 @@
QR.oekaki =
menu:
init: ->
return unless Conf['Quick Reply'] and Conf['Edit Link']
return unless g.VIEW in ['index', 'thread'] and Conf['Menu'] and Conf['Edit Link'] and Conf['Quick Reply']
a = $.el 'a',
className: 'edit-link'