Bugzilla – Attachment 84702 Details for
Bug 11375
Improve patrons permissions display
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11375: (follow-up) Add links to show all/hide all
Bug-11375-follow-up-Add-links-to-show-allhide-all.patch (text/plain), 3.01 KB, created by
Owen Leonard
on 2019-02-04 13:19:06 UTC
(
hide
)
Description:
Bug 11375: (follow-up) Add links to show all/hide all
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-02-04 13:19:06 UTC
Size:
3.01 KB
patch
obsolete
>From 92a489a588507b7a2ed3f39734f8a0425fb52382 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 17 Jan 2019 15:37:15 +0000 >Subject: [PATCH] Bug 11375: (follow-up) Add links to show all/hide all > >This patch adds links in the toolbar to show or hide all >sub-permissions. > >To test, apply the patch and view the permissions page for a patron. >Clicking the "Show all" or "Hide all" links should work to show or hide >all sub-permissions. The corresponding "Show details" and "Hide details" >links for each permission set should be correctly toggled. >--- > koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 2 +- > .../intranet-tmpl/prog/en/modules/members/member-flags.tt | 14 ++++++++++++++ > 2 files changed, 15 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >index 915b93d..67a78f2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >@@ -4346,7 +4346,7 @@ span { > } > > .permission-highlight { >- background-color: #FFC; >+ background-color: #FFC !important; > } > > .togglechildren_on, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt >index 503cfbf..a777dda 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt >@@ -31,6 +31,8 @@ > <div id="permissions_toolbar" class="btn-toolbar"> > <button type="submit" class="btn btn-sm btn-default"><i class="fa fa-save"></i> Save</button> > <a class="btn btn-sm btn-default" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]"><i class="fa fa-remove"></i> Cancel</a> >+ <a class="toggleall toggleall_on btn btn-link" href="#"><i class="fa fa-plus-square-o"></i> Show all</a> >+ <a class="toggleall toggleall_off btn btn-link" href="#"><i class="fa fa-minus-square-o"></i> Hide all</a> > <div class="btn-group pull-right"> > Filter: <input type="text" name="permissions_filter" id="permissions_filter" size="20" /> > <a href="#" id="clear_filter" style="display:none"><i class="fa fa-remove"></i></a> >@@ -166,6 +168,18 @@ > } > }); > >+ >+ $(".toggleall_off, .toggleall_on").on('click', function(e) { >+ e.preventDefault(); >+ if( $(this).hasClass("toggleall_on")){ >+ $(".children,.togglechildren_off").show(); >+ $(".togglechildren_on").hide(); >+ } else { >+ $(".children,.togglechildren_off").hide(); >+ $(".togglechildren_on").show(); >+ } >+ }); >+ > $(".togglechildren_off, .togglechildren_on").on('click', function(e) { > e.preventDefault(); > var bit = $(this).data("bit"); >-- >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 11375
:
51847
|
75967
|
77333
|
77486
|
82932
|
83296
|
84140
|
84143
|
84700
|
84701
|
84702
|
85351
|
85352
|
85576
|
85577
|
85622
|
85623
|
85624
|
85625
|
86437
|
86438
|
86439
|
86440