Bugzilla – Attachment 120027 Details for
Bug 28196
In page anchors on additem.pl don't always go to the right place
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28196: make sure hash is always appended last
Bug-28196-make-sure-hash-is-always-appended-last.patch (text/plain), 2.09 KB, created by
Lucas Gass (lukeg)
on 2021-04-22 20:50:45 UTC
(
hide
)
Description:
Bug 28196: make sure hash is always appended last
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2021-04-22 20:50:45 UTC
Size:
2.09 KB
patch
obsolete
>From d8465dec6cbf4c8acd9a209e8e35715fd3047e1b Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 22 Apr 2021 20:45:06 +0000 >Subject: [PATCH] Bug 28196: make sure hash is always appended last > >To test: > >-Do a search within the staff client >-Click on any results and go to the detail page >-Click the edit button on any item in that record, you will be taken to the edit item screen but you will not be taken to the <h2 id="edititem"> placeholder >-Apply patch and try again >-This time when taken to the edit item screen you should be placed right at the <h2 id="edititem"> placeholder >--- > koha-tmpl/intranet-tmpl/js/browser.js | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/js/browser.js b/koha-tmpl/intranet-tmpl/js/browser.js >index 19d707376e..8eb702a0fe 100644 >--- a/koha-tmpl/intranet-tmpl/js/browser.js >+++ b/koha-tmpl/intranet-tmpl/js/browser.js >@@ -103,10 +103,16 @@ KOHA.browser = function (searchid, biblionumber) { > ev.preventDefault(); > browseRecords(1); > }); >- $('a[href*="biblionumber="]').not('a[target="_blank"]').click(function (ev) { >+ $('a[href*="biblionumber="]').not('a[target="_blank"]').not('a[href*=\\#]').click(function (ev) { > ev.preventDefault(); > window.location = $(this).attr('href') + '&searchid=' + me.searchid; > }); >+ $('a[href*="biblionumber="][href*=\\#]').not('a[target="_blank"]').click(function (ev) { >+ ev.preventDefault(); >+ var hash = $(this).attr('href').substring( $(this).attr('href').indexOf('#') + 1 ) >+ var split = $(this).attr('href').split('#' + hash); >+ window.location = split[0] + '&searchid=' + me.searchid + '#' + hash; >+ }); > $('form[name="f"]').append('<input type="hidden" name="searchid" value="' + me.searchid + '"></input>'); > } > }); >-- >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 28196
:
120027
|
122352
|
122384
|
122747
|
152478
|
152686
|
153295