Bug 21186: (follow-up) Incorrect Bootstrap modal event name in multiple templates

This patch addresses a few more instances of this problem which I didn't
catch in my first pass.

To test, apply the patch and clear your browser cache if necessary.

- Go to Circulation -> Check in and check in an item which has a hold.
  - When the 'Hold found' modal appears the checkin barcode field
    behind it should be disabled.
  - When the modal is dismissed the checkin field should be enabled
    again and focus should be on that field.

- Go to Administration -> Library groups.
  - Click the "Add group" button. The cursor focus should be on the
    title field.

- Go to Tools -> MARC modification templates.
  - Click the "New template" button. The cursor focus should be on the
    name field.

Signed-off-by: Cori Lynn Arnold <carnold@dgiinc.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit b943991316)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Owen Leonard 2018-10-25 15:24:29 +00:00 committed by Martin Renvoize
parent 5d6eb1f67b
commit 5f7a2c9213
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
3 changed files with 5 additions and 5 deletions

View File

@ -52,7 +52,7 @@
$('#add-group-modal-description').val("");
$('#add-group-modal-title').val("");
$('#add-group-modal').on('shown', function() {
$('#add-group-modal').on('shown.bs.modal', function() {
$('#add-group-modal-title').focus();
});
@ -84,7 +84,7 @@
$('#root-group-features-edit').show();
}
$('#edit-group-modal').on('shown', function() {
$('#edit-group-modal').on('shown.bs.modal', function() {
$('#edit-group-modal-title').focus();
});

View File

@ -705,9 +705,9 @@
$("#barcode").focus();
}
$(document).ready(function () {
$(".modal").modal({ backdrop: 'static' }).on('shown', function() {
$(".modal").modal({ backdrop: 'static' }).on('shown.bs.modal', function() {
$("#barcode").prop("disabled", true);
}).on('hidden', function() {
}).on('hidden.bs.modal', function() {
$("#barcode").prop("disabled", false).focus();
});

View File

@ -61,7 +61,7 @@ $(document).ready(function() {
$("#duplicate_current_template").val(1);
});
$('#createTemplate').on('shown', function (e) {
$('#createTemplate').on('shown.bs.modal', function (e) {
e.preventDefault();
$("#template_name").focus();
});