Bugzilla – Attachment 47819 Details for
Bug 11937
opac link doesn't open in new window
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
browser.js changed to modify all the links but not the target _blank
Bug-11937-opac-link-doesn-t-open-in-new-window.patch (text/plain), 1.14 KB, created by
Juan Romay Sieira
on 2016-02-09 16:46:05 UTC
(
hide
)
Description:
browser.js changed to modify all the links but not the target _blank
Filename:
MIME Type:
Creator:
Juan Romay Sieira
Created:
2016-02-09 16:46:05 UTC
Size:
1.14 KB
patch
obsolete
>From b91bf2b15f20aac6ed9ec7e32b7326b9c29fde69 Mon Sep 17 00:00:00 2001 >From: Juan Romay Sieira <juan.sieira@xercode.es> >Date: Tue, 9 Feb 2016 17:39:32 +0100 >Subject: [PATCH] Bug 11937 - opac link doesn't open in new window >Content-Type: text/plain; charset="utf-8" > >Signed-off-by: Juan Romay Sieira <juan.sieira@xercode.es> >--- > koha-tmpl/intranet-tmpl/js/browser.js | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/js/browser.js b/koha-tmpl/intranet-tmpl/js/browser.js >index 9f5a1ac..1557243 100644 >--- a/koha-tmpl/intranet-tmpl/js/browser.js >+++ b/koha-tmpl/intranet-tmpl/js/browser.js >@@ -111,7 +111,7 @@ KOHA.browser = function (searchid, biblionumber) { > ev.preventDefault(); > browseRecords(1); > }); >- $('a[href*="biblionumber="]').click(function (ev) { >+ $('a[href*="biblionumber="]').not('a[target="_blank"]').click(function (ev) { > ev.preventDefault(); > window.location = $(this).attr('href') + '&searchid=' + me.searchid; > }); >-- >2.1.4 >
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 11937
:
47819
|
47839
|
47953