Sha256: 0816c50dc50b346fcee7f5750950bc757c917f7ade3ea85950498667805a01fa
Contents?: true
Size: 631 Bytes
Versions: 68
Compression:
Stored size: 631 Bytes
Contents
attach_assessment_event = function() { $("#new_assessment").submit(function (event) { var missing_answer = false; $("li.radio-question-group").each(function (index) { var current_question = parseInt(index) + 1; if (!$("input:radio[name='assessment[q" + current_question + "]']:checked").val()) { missing_answer = true; } }); if (missing_answer && !confirm("You have not responded to all of the questions. Would you like to submit with missing responses? If yes, please hit OK, if you would like to answer the questions, please hit cancel.")) { event.preventDefault(); } }); }
Version data entries
68 entries across 68 versions & 1 rubygems