Skip to content

Commit

Permalink
SAK-42265 samigo > improve text of warning confirmation when deleting…
Browse files Browse the repository at this point in the history
… quizzes (sakaiproject#8760)
  • Loading branch information
bjones86 authored Oct 30, 2020
1 parent 5feab82 commit bdf0d8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ samigo_formula_error_402=402: Result is infinity (Infinity)
samigo_formula_error_500=500: Unknown Error

cert_rem_assmt=Are you sure you want to remove these assessments?
cert_rem_assmt2=It is not recommended to delete Draft assessments that you plan to edit, export, or reuse in other sites. You cannot export published assessments.
button_edit_questions=Edit Questions
button_return_to_main=Return to Main Questions Screen
cert_rem_q=Are you sure you would like to remove this question?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,15 @@
function removeSelectedButtonAction() {
if (!$("#authorIndexForm\\:remove-selected").hasClass("disabled")) {
var message = <h:outputText value="'#{authorMessages.cert_rem_assmt}'" />;
message += "\n\n";
message += <h:outputText value="'#{authorMessages.cert_rem_assmt2}'" />;
var elem = document.createElement('div');
elem.innerHTML = message;
if(!confirm(elem.textContent)) {
event.preventDefault();
return false;
}
return true
return true;
}
}
</script>
Expand Down

0 comments on commit bdf0d8b

Please sign in to comment.