feat: quiz option as small text

This commit is contained in:
Jannat Patel
2023-06-09 18:09:54 +05:30
parent 0db47dfee1
commit 1d8de792a5
3 changed files with 15 additions and 8 deletions
+7 -1
View File
@@ -77,7 +77,13 @@ const save_question = (e) => {
quiz: $("#quiz-title").data("name") || "",
},
callback: (data) => {
window.location.href = `/quizzes/${data.message}`;
frappe.show_alert({
message: __("Saved"),
indicator: "green",
});
setTimeout(() => {
window.location.href = `/quizzes/${data.message}`;
}, 2000);
},
});
};