Commit 90c7e37833d236b968fe1ee3f0cad54f0072ef0f

Authored by Zambom
1 parent 92065657

Making subject deletion not be real ajax

Showing 1 changed file with 5 additions and 5 deletions   Show diff stats
subjects/static/subjects/js/modal_subject.js
... ... @@ -2,12 +2,12 @@ var RemoveSubject = {
2 2 remove: function(url,dados,id_li_link){
3 3 $("#subject").modal('toggle');
4 4 $.post(url,dados, function(data){
5   - $(id_li_link).remove();
6   - $('body').removeClass('modal-open');
7   - $("#modal_course").empty();
8   - $(".modal-backdrop.in").remove();
  5 + // $(id_li_link).remove();
  6 + // $('body').removeClass('modal-open');
  7 + // $("#modal_course").empty();
  8 + // $(".modal-backdrop.in").remove();
9 9 window.location.href = data['url'];
10   - alertify.success("Subject removed successfully!");
  10 + //alertify.success("Subject removed successfully!");
11 11 }).fail(function(){
12 12 $("#modal_course").empty();
13 13 $("#modal_course").append(data);
... ...