Bugzilla – Attachment 130047 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: Use KohaTable
Bug-29832-Use-KohaTable.patch (text/plain), 1.68 KB, created by
Jonathan Druart
on 2022-02-01 15:39:18 UTC
(
hide
)
Description:
Bug 29832: Use KohaTable
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-02-01 15:39:18 UTC
Size:
1.68 KB
patch
obsolete
>From 6d9b8ed89a6207c394c2f04c292df84785d8cf53 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 1 Feb 2022 16:38:15 +0100 >Subject: [PATCH] Bug 29832: Use KohaTable > >NoSort is defined in KohaTable > >Also add noExport > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../intranet-tmpl/prog/en/modules/admin/desks.tt | 12 +++++------- > 1 file changed, 5 insertions(+), 7 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 5e91dffc1bc..2043f68603a 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 class="nosort">Action</th> >+ <th class="NoSort noExport">Action</th> > </tr> > </thead> > <tbody> >@@ -217,14 +217,12 @@ > [% MACRO jsinclude BLOCK %] > [% Asset.js("js/admin-menu.js") | $raw %] > [% INCLUDE 'datatables.inc' %] >+ [% INCLUDE 'columns_settings.inc' %] > <script> > $(document).ready(function() { >- $("#table_desks").dataTable($.extend(true, {}, dataTablesDefaults, { >- "order": [[ 1, "asc" ]], >- "columnDefs": [ >- { "orderable": false, "searchable": false, 'targets': ['nosort'] }, >- ], >- })); >+ KohaTable("table_desks", { >+ "order": [[ 1, "asc" ]] >+ }); > }); > </script> > [% END %] >-- >2.25.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