Bugzilla – Attachment 169089 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), 999 bytes, created by
Martin Renvoize (ashimema)
on 2024-07-17 15:17:26 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:
Martin Renvoize (ashimema)
Created:
2024-07-17 15:17:26 UTC
Size:
999 bytes
patch
obsolete
>From 987412a159d0c355538da8cbdbd2d03174107b39 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> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > 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 d7b8222cbe6..11f4a2a89b9 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.45.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