a crap tonne of work on #273

This commit is contained in:
tidusjar 2016-06-04 17:51:13 +01:00
commit 071daf4ab4
16 changed files with 472 additions and 103 deletions

View file

@ -445,31 +445,6 @@ $(document).on("click", ".approve-with-quality", function (e) {
});
// Clear issues
$(document).on("click", ".clear", function (e) {
e.preventDefault();
var buttonId = e.target.id;
var $form = $('#clear' + buttonId);
$.ajax({
type: $form.prop('method'),
url: $form.prop('action'),
data: $form.serialize(),
dataType: "json",
success: function (response) {
if (checkJsonResponse(response)) {
generateNotify("Success! Issues Cleared.", "info");
$('#issueArea' + buttonId).html("<div>Issue: None</div>");
}
},
error: function (e) {
console.log(e);
generateNotify("Something went wrong!", "danger");
}
});
});
// Change Availability
$(document).on("click", ".change", function (e) {