Bugzilla – Attachment 108022 Details for
Bug 20154
Stay in the open tab when editing authority record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20154: Stay in the open tab when editing authority record
Bug-20154-Stay-in-the-open-tab-when-editing-author.patch (text/plain), 1.79 KB, created by
Katrin Fischer
on 2020-08-10 21:29:11 UTC
(
hide
)
Description:
Bug 20154: Stay in the open tab when editing authority record
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-08-10 21:29:11 UTC
Size:
1.79 KB
patch
obsolete
>From 1222afbd854b2514679b03840751c72899822979 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 13 Jul 2020 20:09:17 +0000 >Subject: [PATCH] Bug 20154: Stay in the open tab when editing authority record > >This patch adds some JavaScript to the authority record detail page in >the staff interface so that clicking "Edit" will take you to the >authority edit page while keeping the same tab open. > >To test, apply the patch and locate an authority record in your catalog. > > - Click any of the numbered tabs besides tab 0. > - Choose "Edit record" from the "Edit" dropdown menu. > - When the authorities edit page loads the same tab should be > preselected. > >Signed-off-by: Marjorie <marjorie.barry-vila@collecto.ca> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt >index 618e325105..c06d753334 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt >@@ -110,7 +110,13 @@ > [% END %] > <script> > $(document).ready(function() { >- $('#authoritiestabs').tabs(); >+ var editAuth = $("#editAuth"); >+ var editAuthLink = editAuth.attr("href"); >+ $('#authoritiestabs').tabs({ >+ activate: function( event, ui ){ >+ editAuth.attr("href", editAuthLink + "#" + ui.newPanel.attr('id') ); >+ } >+ }); > [% IF ( displayhierarchy ) %] > var current_nodes = []; > $('.currentauth').each(function() { >-- >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 20154
:
106852
|
106966
| 108022