This commit is contained in:
Ross
2022-01-03 17:45:20 +00:00
parent f5aa2693d3
commit 4643f7b251
3 changed files with 18 additions and 8 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
<script type="text/javascript">
$(document).ready(function () {
// send request to change the is_private state on customSwitches toggle
$("#exam-active-switch").on("change", function (evt) {
$("#exam-active-switch, .exam-active-switch").on("change", function (evt) {
$.ajax({
url: evt.currentTarget.dataset.posturl,
data: {
@@ -40,7 +40,7 @@
console.log(data);
if (data.status == "success") {
toastr.info(`Exam: ${data.name}
toastr.info(`Exam: ${data.name} [${data.id}]
Published state changed to: ${data.publish_results}.`)
}
// show some message according to the response.