Bugzilla – Attachment 90539 Details for
Bug 23007
Make dialogs in returns.pl optionally modal
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23007: Make modals close on enter
Bug-23007-Make-modals-close-on-enter.patch (text/plain), 2.15 KB, created by
Nick Clemens (kidclamp)
on 2019-06-12 19:55:04 UTC
(
hide
)
Description:
Bug 23007: Make modals close on enter
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2019-06-12 19:55:04 UTC
Size:
2.15 KB
patch
obsolete
>From 476f749e25cf3a7b0ac1254a404db056ef9a1430 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 12 Jun 2019 19:54:42 +0000 >Subject: [PATCH] Bug 23007: Make modals close on enter > >--- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >index 6277ed8123..6d843c0a4f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >@@ -227,6 +227,7 @@ > <button class="btn btn-default deny cancel-transfer" type="submit"><i class="fa fa-times"></i> Cancel transfer</button> > <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" /> > <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" /> >+ <button class="close" data-dismiss="modal">×</button> > </div> > </form> > </div> >@@ -412,6 +413,7 @@ > <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" /> > <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" /> > [% END %] >+ <button class="close" data-dismiss="modal">×</button> > </div> > </form> > </div> >@@ -836,7 +838,8 @@ > $("#barcode").focus(); > } > $(document).ready(function () { >- $(".modal").modal({ backdrop: 'static' }).on('shown.bs.modal', function() { >+ $(".modal").modal({ backdrop: 'static', keyboard: true }).on('shown.bs.modal', function() { >+ $('.close').trigger('focus') > $("#barcode").prop("disabled", true); > }).on('hidden.bs.modal', function() { > $("#barcode").prop("disabled", false).focus(); >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23007
:
90539
|
91049
|
91050
|
91506
|
91507
|
92506
|
92507
|
93713
|
93714