diff options
author | adityacp | 2020-01-30 15:51:35 +0530 |
---|---|---|
committer | adityacp | 2020-01-30 15:51:35 +0530 |
commit | 8d9b3a10e8980284bf70298e44018766ec05de79 (patch) | |
tree | 448b3d134890c6035c4644ab4c3dbc86df5a8874 /yaksh/static | |
parent | 723e9e71b1a108e580e38ee73cae90980c33b261 (diff) | |
download | online_test-8d9b3a10e8980284bf70298e44018766ec05de79.tar.gz online_test-8d9b3a10e8980284bf70298e44018766ec05de79.tar.bz2 online_test-8d9b3a10e8980284bf70298e44018766ec05de79.zip |
Change in js, templates
- Replace manual django url pattern in course progress and course js
- Add overflow horizontal scroll in quiz side bar
- Use bootstrap input text style in quiz
Diffstat (limited to 'yaksh/static')
-rw-r--r-- | yaksh/static/yaksh/js/course.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/yaksh/static/yaksh/js/course.js b/yaksh/static/yaksh/js/course.js index 7b3c5d9..a4b5579 100644 --- a/yaksh/static/yaksh/js/course.js +++ b/yaksh/static/yaksh/js/course.js @@ -90,8 +90,7 @@ $(document).ready(function(){ student_id = data.split("+")[1];
var status_div = $("#show_status_"+course_id+"_"+student_id);
if(!status_div.is(":visible")){
- var get_url = window.location.protocol + "//" + window.location.host +
- "/exam/manage/get_user_status/" + course_id + "/" + student_id;
+ var get_url = $("#url-"+student_id).attr("data-url");
$.ajax({
url: get_url,
timeout: 8000,
@@ -99,8 +98,8 @@ $(document).ready(function(){ dataType: "json",
contentType: 'application/json; charset=utf-8',
success: function(data) {
- status_div.toggle();
- status_div.html(data.user_data);
+ status_div.toggle();
+ status_div.html(data.user_data);
},
error: function(jqXHR, textStatus) {
alert("Unable to get user data. Please Try again later.");
|