Bugzilla – Attachment 106966 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.73 KB, created by
ByWater Sandboxes
on 2020-07-16 19:06:59 UTC
(
hide
)
Description:
Bug 20154: Stay in the open tab when editing authority record
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2020-07-16 19:06:59 UTC
Size:
1.73 KB
patch
obsolete
>From 62a082cb7d4a3ef26c0d61ee6c046b04ff862d0b 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> >--- > 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