Issue Vm Ops
VM operations with form were kinda after an unsuccessful try. Without Javascript they still redirect to a page that seems to miss context data, but if javascript is enabled they work nice.
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
-
33 34 /* if the operation fails show the modal again */ 35 $("body").on("click", "#op-form-send", function() { 36 var url = $(this).closest("form").prop("action"); 37 $.ajax({ 38 url: url, 39 headers: {"X-CSRFToken": getCookie('csrftoken')}, 40 type: 'POST', 41 data: $(this).closest('form').serialize(), 42 success: function(data, textStatus, xhr) { 43 $('#confirmation-modal').modal("hide"); 44 45 if(data.redirect) { 46 $('a[href="#activity"]').trigger("click"); 47 } 48 else { -
Owner
pls add a comment about what's this doing.fixed
-
-
Owner
+1