Lines 35-41
$(document).ready(function() {
Link Here
|
35 |
$('#addConcernModal').modal('hide'); |
35 |
$('#addConcernModal').modal('hide'); |
36 |
$('#concern_body').val(''); |
36 |
$('#concern_body').val(''); |
37 |
$('#concern_title').val(''); |
37 |
$('#concern_title').val(''); |
38 |
$('#toolbar').before('<div class="alert alert-success">Your concern was sucessfully submitted.</div>'); |
38 |
$('#toolbar').before('<div class="dialog message">' + __("Your concern was sucessfully submitted.") + '</div>'); |
39 |
if ($.fn.dataTable.isDataTable("#table_concerns")) { |
39 |
if ($.fn.dataTable.isDataTable("#table_concerns")) { |
40 |
$("#table_concerns").DataTable().ajax.reload(); |
40 |
$("#table_concerns").DataTable().ajax.reload(); |
41 |
} |
41 |
} |
Lines 43-49
$(document).ready(function() {
Link Here
|
43 |
error: function(data) { |
43 |
error: function(data) { |
44 |
$('#concern-submit-spinner').hide(); |
44 |
$('#concern-submit-spinner').hide(); |
45 |
$('#addConcernModal').modal('hide'); |
45 |
$('#addConcernModal').modal('hide'); |
46 |
$('#toolbar').before('<div class="alert alert-error">There was an error when submitting your concern, please contact a librarian.</div>'); |
46 |
$('#toolbar').before('<div class="dialog alert">' + __("There was an error when submitting your concern, please contact a librarian.") + '</div>'); |
47 |
}, |
47 |
}, |
48 |
contentType: "json" |
48 |
contentType: "json" |
49 |
}); |
49 |
}); |