summaryrefslogtreecommitdiff
path: root/yaksh/static
diff options
context:
space:
mode:
authoradityacp2017-11-21 17:08:23 +0530
committeradityacp2017-11-21 17:18:10 +0530
commit8e5354fb2fdab96780bfd147ba5b1724eebd673b (patch)
tree3bcb0ecfc622b600852c5062c0d84fda2e690a12 /yaksh/static
parent38f6d5aac0e387fed28003c2655877fa21deac93 (diff)
downloadonline_test-8e5354fb2fdab96780bfd147ba5b1724eebd673b.tar.gz
online_test-8e5354fb2fdab96780bfd147ba5b1724eebd673b.tar.bz2
online_test-8e5354fb2fdab96780bfd147ba5b1724eebd673b.zip
Change in templates, js, template tag
- Add new template tag to fetch course module completion status - View all lessons/quizzes during quiz - Change button values - Change user mode and god mode
Diffstat (limited to 'yaksh/static')
-rw-r--r--yaksh/static/yaksh/js/add_quiz.js14
1 files changed, 2 insertions, 12 deletions
diff --git a/yaksh/static/yaksh/js/add_quiz.js b/yaksh/static/yaksh/js/add_quiz.js
index f4067ed..57993ef 100644
--- a/yaksh/static/yaksh/js/add_quiz.js
+++ b/yaksh/static/yaksh/js/add_quiz.js
@@ -21,15 +21,5 @@ String.prototype.beginsWith = function (string) {
function usermode(location)
{
- var select = document.getElementById("id_prerequisite");
- var select_text = select.options[select.selectedIndex].text;
- if (select_text.beginsWith("----")){
- window.alert("No prerequisite for this course.\n \
- You can attempt the quiz.");
- window.location.replace(location);
- } else {
- window.alert(select_text + " is a prerequisite for this course.\n \
- You are still allowed to attempt this quiz.")
- window.location.replace(location);
- }
- }
+ window.location.replace(location);
+}