Bug 36950: Improve placement of catalog concern banner in the OPAC
This patch changes the placement of the catalog concern banner in the OPAC. Changing the way it is added to the DOM will prevent it from obscuring content. To test, apply the patch and clear your browser cache if necessary. - In the staff interface, make sure the "OpacCatalogConcerns" system preference is enabled. - Locate a bibliographic record and view the detail page. - Click the "Report a concern" link in the sidebar. - Submit your concern. - When the concern is successfully submitted and the modal closes, the success banner ("Your concern was successfully submitted.") should appear below the breadcrumbs menu and above the biblio view tabs ("Normal view, "MARC view", etc.). Sponsored-By: Athens County Public Libraries Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
b54c854d24
commit
43a08f0f1e
1 changed files with 2 additions and 2 deletions
|
@ -53,12 +53,12 @@ $(document).ready(function() {
|
|||
$('#addConcernModal').modal('hide');
|
||||
$('#concern_body').val('');
|
||||
$('#concern_title').val('');
|
||||
$('h1:first').before('<div class="alert alert-success">' + __("Your concern was successfully submitted.") + '</div>');
|
||||
$('#catalogue_detail_biblio').prepend('<div class="alert alert-success">' + __("Your concern was successfully submitted.") + '</div>');
|
||||
},
|
||||
error: function(data) {
|
||||
$('#concern-submit-spinner').hide();
|
||||
$('#addConcernModal').modal('hide');
|
||||
$('h1:first').before('<div class="alert alert-error">' + __("There was an error when submitting your concern, please contact a librarian.") + '</div>');
|
||||
$('#catalogue_detail_biblio').prepend('<div class="alert alert-error">' + __("There was an error when submitting your concern, please contact a librarian.") + '</div>');
|
||||
},
|
||||
contentType: "json"
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue