Retrospring/app/javascript/packs/legacy/questionbox/report.coffee

6 lines
188 B
CoffeeScript
Raw Normal View History

2015-04-25 18:36:25 -07:00
$(document).on "click", "a[data-action=ab-question-report]", (ev) ->
ev.preventDefault()
btn = $(this)
qId = btn[0].dataset.qId
reportDialog "question", qId, -> btn.button "reset"