Bugzilla – Attachment 110848 Details for
Bug 26207
Compare values of system preference log entries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26207: (follow-up) Hide comparison toolbar if there are no comparisons
Bug-26207-follow-up-Hide-comparison-toolbar-if-the.patch (text/plain), 1.09 KB, created by
Owen Leonard
on 2020-09-28 11:19:01 UTC
(
hide
)
Description:
Bug 26207: (follow-up) Hide comparison toolbar if there are no comparisons
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2020-09-28 11:19:01 UTC
Size:
1.09 KB
patch
obsolete
>From 27b99653b988f5a9e516f2ec296df2800625ca14 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 28 Sep 2020 11:09:01 +0000 >Subject: [PATCH] Bug 26207: (follow-up) Hide comparison toolbar if there are > no comparisons > >This patch adds a check to the JavaScript so that the comparisons >toolbar will be hidden if there are no system preferences in the results >to compare. >--- > koha-tmpl/intranet-tmpl/prog/js/viewlog.js | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/viewlog.js b/koha-tmpl/intranet-tmpl/prog/js/viewlog.js >index 04eb6c7b2f..58c126de59 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/viewlog.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/viewlog.js >@@ -51,6 +51,13 @@ function limitCheckboxes() { > > $(document).ready(function(){ > limitCheckboxes(); >+ >+ if( $(".compare_info").length == 0 ){ >+ /* Remove toolbar if there are no system preference >+ entries to compare */ >+ $("#toolbar").remove(); >+ } >+ > if ($('#toolbar').length) { > Sticky = $("#toolbar"); > Sticky.hcSticky({ >-- >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 26207
:
108271
|
108692
|
108736
|
108760
|
108761
| 110848