Skip to content

Instantly share code, notes, and snippets.

@inkredabull
Created July 30, 2016 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inkredabull/6779a9b254d85fa47645985ccaa82f61 to your computer and use it in GitHub Desktop.
Save inkredabull/6779a9b254d85fa47645985ccaa82f61 to your computer and use it in GitHub Desktop.
NoTQs.coffee
Callout = require('coffee!./callout')
class NoTestQuestionsCallout extends Callout
constructor: ->
@$popover = jQuery('#fte-for-no-test-questions')
@$container = jQuery('.step_header')
@visible = CF.TestQuestions.count == 0 && !localStorage.getItem(@$popover.attr('id'))
@position = 'bottom'
super
module.exports = NoTestQuestionsCallout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment