Bugzilla – Attachment 129284 Details for
Bug 29832
Make library column in desk list sortable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29832: Make library column in desk list sortable
Bug-29832-Make-library-column-in-desk-list-sortabl.patch (text/plain), 2.14 KB, created by
Lucas Gass (lukeg)
on 2022-01-10 18:53:53 UTC
(
hide
)
Description:
Bug 29832: Make library column in desk list sortable
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2022-01-10 18:53:53 UTC
Size:
2.14 KB
patch
obsolete
>From ecc7671081c96779ecddafc70c4143c0bd990a1a Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 10 Jan 2022 12:28:40 +0000 >Subject: [PATCH] Bug 29832: Make library column in desk list sortable > >This patch makes minor updates to the DataTable configuration on the >Circulation Desks Administration page. Redundant options are removed and >existing options are updated to use current DataTables syntax. > >To test, apply the patch and make sure that the UseCirculationDesks >system preference is enabled. > >- Go to Administration -> Circulation desks. >- Add multiple circulation desks if necessary, at multiple libraries. >- The "Desk" column should be sorted by default, and the "Actions" > column should not be sortable. >- The "Library" column should be sortable. > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/desks.tt | 10 ++++------ > 1 file changed, 4 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/desks.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/desks.tt >index 9da4510f69..5e91dffc1b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/desks.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/desks.tt >@@ -180,7 +180,7 @@ > <th>Desk ID</th> > <th>Desk</th> > <th>Library</th> >- <th>Action</th> >+ <th class="nosort">Action</th> > </tr> > </thead> > <tbody> >@@ -220,12 +220,10 @@ > <script> > $(document).ready(function() { > $("#table_desks").dataTable($.extend(true, {}, dataTablesDefaults, { >- "aoColumnDefs": [ >- { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false }, >+ "order": [[ 1, "asc" ]], >+ "columnDefs": [ >+ { "orderable": false, "searchable": false, 'targets': ['nosort'] }, > ], >- "aaSorting": [[ 1, "asc" ]], >- "iDisplayLength": 10, >- "sPaginationType": "full_numbers" > })); > }); > </script> >-- >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 29832
:
129251
|
129284
|
130046
|
130047