Commit 6e6277fc8f8cb994a32382bdb388d5fbaccd774e
1 parent
db878fed
Exists in
master
and in
5 other branches
Page now reload faster [Issue:#437]
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
courses/static/js/course.js
@@ -49,7 +49,7 @@ function subscribe(elem, url, id, confirm_message) { | @@ -49,7 +49,7 @@ function subscribe(elem, url, id, confirm_message) { | ||
49 | 49 | ||
50 | /* | 50 | /* |
51 | * | 51 | * |
52 | -* Function to delete a course | 52 | +* Function to delete a course |
53 | * | 53 | * |
54 | */ | 54 | */ |
55 | 55 | ||
@@ -62,7 +62,7 @@ var RemoveCourse = { | @@ -62,7 +62,7 @@ var RemoveCourse = { | ||
62 | $("#accordion").remove(); | 62 | $("#accordion").remove(); |
63 | $(".modal-backdrop.in").remove(); | 63 | $(".modal-backdrop.in").remove(); |
64 | alertify.success("Course removed successfully!"); | 64 | alertify.success("Course removed successfully!"); |
65 | - setTimeout(function () { location.reload(1); }, 2000); | 65 | + setTimeout(function () { location.reload(1); }, 1); |
66 | }).fail(function(){ | 66 | }).fail(function(){ |
67 | $("#modal_course").empty(); | 67 | $("#modal_course").empty(); |
68 | $("#modal_course").append(data); | 68 | $("#modal_course").append(data); |
@@ -84,7 +84,7 @@ var delete_course = { | @@ -84,7 +84,7 @@ var delete_course = { | ||
84 | }); | 84 | }); |
85 | } | 85 | } |
86 | }; | 86 | }; |
87 | -/* | 87 | +/* |
88 | * | 88 | * |
89 | * Function to load create course's form | 89 | * Function to load create course's form |
90 | * | 90 | * |
@@ -97,4 +97,4 @@ function replicate_course(url, course) { | @@ -97,4 +97,4 @@ function replicate_course(url, course) { | ||
97 | $(".course_replicate_form").html(data); | 97 | $(".course_replicate_form").html(data); |
98 | } | 98 | } |
99 | }); | 99 | }); |
100 | -} | ||
101 | \ No newline at end of file | 100 | \ No newline at end of file |
101 | +} |