Bugzilla – Attachment 113275 Details for
Bug 26633
Add advanced editor for transfer limits
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26633: Add ability to bookmark the page you are viewing
Bug-26633-Add-ability-to-bookmark-the-page-you-are.patch (text/plain), 1.43 KB, created by
Kyle M Hall (khall)
on 2020-11-06 18:33:06 UTC
(
hide
)
Description:
Bug 26633: Add ability to bookmark the page you are viewing
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2020-11-06 18:33:06 UTC
Size:
1.43 KB
patch
obsolete
>From 343f7e5018376533683745294e8e2444d2ee40ec Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 6 Nov 2020 13:29:33 -0500 >Subject: [PATCH] Bug 26633: Add ability to bookmark the page you are viewing > >--- > .../prog/en/modules/admin/transfer_limits.tt | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/transfer_limits.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/transfer_limits.tt >index 722f91295b..75a4512333 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/transfer_limits.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/transfer_limits.tt >@@ -265,6 +265,8 @@ > }); > > $("#value_selector").on('change', function() { >+ const val = $('#value_selector').val(); >+ window.history.replaceState(null, "", `/cgi-bin/koha/admin/transfer_limits.pl?code=${val}`); > updateTransferLimitsTable(); > }); > >@@ -285,6 +287,14 @@ > }); > > updateTransferLimitsTable(); >+ >+ const queryString = window.location.search; >+ const urlParams = new URLSearchParams(queryString); >+ const code = urlParams.get('code'); >+ if ( code ) { >+ $('#value_selector').val(code); >+ updateTransferLimitsTable(); >+ } > }); > > function delLimit(checkbox) { >-- >2.24.1 (Apple Git-126)
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 26633
:
111380
|
111381
|
112327
|
112328
|
112330
|
112437
|
112438
|
112587
|
112778
|
112779
|
112780
|
112781
|
112782
|
112923
|
112924
|
112925
|
112926
|
112927
|
112928
|
112929
|
113053
|
113265
|
113266
|
113267
|
113268
|
113269
|
113270
|
113271
|
113272
|
113273
|
113274
|
113275
|
113676
|
113677
|
113961
|
116612
|
116613
|
116952
|
116953
|
116954
|
116955
|
116956
|
116957
|
116958
|
116959
|
116960
|
116961
|
116962
|
116963
|
116964