hidden.coffee 341 B

12345678910111213141516
  1. class app.views.HiddenPage extends app.View
  2. @events:
  3. click: 'onClick'
  4. constructor: (@el, @entry) -> super
  5. init: ->
  6. @addSubview @notice = new app.views.Notice 'disabledDoc'
  7. @activate()
  8. return
  9. onClick: (event) =>
  10. if link = $.closestLink(event.target, @el)
  11. $.stopEvent(event)
  12. $.popup(link)
  13. return