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

6 lines
188 B
CoffeeScript

$(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"