Bugzilla – Attachment 130412 Details for
Bug 11873
Upgrade jstree jQuery plugin to the latest version
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11873: Remove decoration on current authority
Bug-11873-Remove-decoration-on-current-authority.patch (text/plain), 4.34 KB, created by
Owen Leonard
on 2022-02-09 22:37:55 UTC
(
hide
)
Description:
Bug 11873: Remove decoration on current authority
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2022-02-09 22:37:55 UTC
Size:
4.34 KB
patch
obsolete
>From 33ae9ad1d83cc09d4b074c4a930cf0767b1b2741 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 27 Jan 2022 11:10:34 +0100 >Subject: [PATCH] Bug 11873: Remove decoration on current authority > >Previously the current authority was not styled like a link. It was >useful to have a visual feedback knowing which authority is currently >displayed. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../prog/en/modules/authorities/detail.tt | 7 ++++++- > .../bootstrap/en/modules/opac-auth-MARCdetail.tt | 8 ++++++-- > .../opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt | 10 +++++++++- > 3 files changed, 21 insertions(+), 4 deletions(-) > >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 1234fe1f6b..f55176b935 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt >@@ -151,7 +151,12 @@ > } > }, > "plugins" : [ "types" ] >- }).on('ready.jstree', function(){ $(this).jstree('open_all') >+ }).on('ready.jstree', function(){ >+ $(this).jstree('open_all'); >+ $("#hier"+[% authid %]+"_anchor").on("click", >+ function(e){e.preventDefault(); return false;} >+ ).css("text-decoration", "none").css("color", "#333"); >+ $(".currentauth").css("text-decoration", "none").css("color", "#333"); > }).bind("select_node.jstree", function (e, data) { > e.preventDefault(); > document.location.href = data.node.a_attr.href; >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-MARCdetail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-MARCdetail.tt >index c6dea95386..c49da102a1 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-MARCdetail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-MARCdetail.tt >@@ -91,7 +91,12 @@ > } > }, > "plugins" : [ "types" ] >- }).on('ready.jstree', function(){ $(this).jstree('open_all') >+ }).on('ready.jstree', function(){ >+ $(this).jstree('open_all') >+ $("#hier"+[% authid %]+"_anchor").on("click", >+ function(e){e.preventDefault(); return false;} >+ ).css("text-decoration", "none").css("color", "#333"); >+ $(".currentauth").css("text-decoration", "none").css("color", "#333"); > }).bind("select_node.jstree", function (e, data) { > e.preventDefault(); > document.location.href = data.node.a_attr.href; >@@ -99,4 +104,3 @@ > [% END %] > }); > </script> >-[% END %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt >index 530b1e4090..0f14a2c151 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt >@@ -13,6 +13,9 @@ > [% Asset.css("lib/jquery/plugins/jstree/themes/default/style.min.css") | $raw %] > [% END %] > [% END %] >+[%# FIXME authid is modified when passed authheadingdisplay %] >+[%# It's then wrong in the JS %] >+[% SET original_authid = authid %] > </head> > [% INCLUDE 'bodytag.inc' bodyid='opac-authoritiesdetail' bodyclass='scrollto' %] > [% INCLUDE 'masthead.inc' %] >@@ -183,7 +186,12 @@ > } > }, > "plugins" : [ "types" ] >- }).on('ready.jstree', function(){ $(this).jstree('open_all') >+ }).on('ready.jstree', function(){ >+ $(this).jstree('open_all'); >+ $("#hier"+[% original_authid %]+"_anchor").on("click", >+ function(e){e.preventDefault(); return false;} >+ ).css("text-decoration", "none").css("color", "#333"); >+ $(".currentauth").css("text-decoration", "none").css("color", "#333"); > }).bind("select_node.jstree", function (e, data) { > e.preventDefault(); > document.location.href = data.node.a_attr.href; >-- >2.20.1
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 11873
:
129857
|
130411
|
130412
|
130418
|
130419