Bugzilla – Attachment 129251 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.09 KB, created by
Owen Leonard
on 2022-01-10 12:33:25 UTC
(
hide
)
Description:
Bug 29832: Make library column in desk list sortable
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2022-01-10 12:33:25 UTC
Size:
2.09 KB
patch
obsolete
>From 042dcde895fa118b57899c22cd2e494c7a88a6f4 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. >--- > 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