@@ -, +, @@ 'Confirm hold' and 'confirm' buttons so when they are cliked the modal box dissapears and any warning messages that were hidden by the box are now visible. --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -36,6 +36,7 @@ function Dopop(link) { var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); $("#barcode").focus(); + $(".btn btn-default approve").onClickConfirm(); } $(document).ready(function () { $(".modal").modal({ backdrop: 'static' }).on('shown', function() { @@ -47,6 +48,10 @@ $(document).ready(function () { [% IF print_slip %] Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% biblionumber %]'); [% END %] + [% IF confirm %] + $(".modal").modal().off; + [% END %] + var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) %] var returns_table = KohaTable("#checkedintable", { @@ -330,7 +335,7 @@ $(document).ready(function () { -