Bugzilla – Attachment 168851 Details for
Bug 37192
Can't print label from the item editor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37192: Add ability to pass data-new_tab to form-submit.js and open in new tab
Bug-37192-Add-ability-to-pass-data-newtab-to-form-.patch (text/plain), 932 bytes, created by
ByWater Sandboxes
on 2024-07-11 17:01:42 UTC
(
hide
)
Description:
Bug 37192: Add ability to pass data-new_tab to form-submit.js and open in new tab
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2024-07-11 17:01:42 UTC
Size:
932 bytes
patch
obsolete
>From 155ddc197607358ca995d6c18657c2631a861514 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 11 Jul 2024 16:11:43 +0000 >Subject: [PATCH] Bug 37192: Add ability to pass data-new_tab to form-submit.js > and open in new tab > >Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org> >--- > koha-tmpl/intranet-tmpl/prog/js/form-submit.js | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/form-submit.js b/koha-tmpl/intranet-tmpl/prog/js/form-submit.js >index d7b8222cbe..11f4a2a89b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/form-submit.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/form-submit.js >@@ -30,6 +30,9 @@ $(document).ready(function () { > }) > ); > }); >+ if (form_data.new_tab) { >+ the_form.attr("target", "_blank"); >+ } > $("body").append(the_form); > the_form.submit(); > }); >-- >2.39.2
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 37192
:
168117
|
168151
|
168839
|
168840
|
168851
|
168852
|
169089
|
169090