Lines 53-64
$(document).ready(function() {
Link Here
|
53 |
$('#addConcernModal').modal('hide'); |
53 |
$('#addConcernModal').modal('hide'); |
54 |
$('#concern_body').val(''); |
54 |
$('#concern_body').val(''); |
55 |
$('#concern_title').val(''); |
55 |
$('#concern_title').val(''); |
56 |
$('h1:first').before('<div class="alert alert-success">' + __("Your concern was successfully submitted.") + '</div>'); |
56 |
$('#catalogue_detail_biblio').prepend('<div class="alert alert-success">' + __("Your concern was successfully submitted.") + '</div>'); |
57 |
}, |
57 |
}, |
58 |
error: function(data) { |
58 |
error: function(data) { |
59 |
$('#concern-submit-spinner').hide(); |
59 |
$('#concern-submit-spinner').hide(); |
60 |
$('#addConcernModal').modal('hide'); |
60 |
$('#addConcernModal').modal('hide'); |
61 |
$('h1:first').before('<div class="alert alert-error">' + __("There was an error when submitting your concern, please contact a librarian.") + '</div>'); |
61 |
$('#catalogue_detail_biblio').prepend('<div class="alert alert-error">' + __("There was an error when submitting your concern, please contact a librarian.") + '</div>'); |
62 |
}, |
62 |
}, |
63 |
contentType: "json" |
63 |
contentType: "json" |
64 |
}); |
64 |
}); |
65 |
- |
|
|