Bugzilla – Attachment 65413 Details for
Bug 19021
Inventory column sorting
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19021 - inventory column not sortable
Bug-19021---inventory-column-not-sortable.patch (text/plain), 1.59 KB, created by
Fridolin Somers
on 2017-08-02 08:38:40 UTC
(
hide
)
Description:
Bug 19021 - inventory column not sortable
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2017-08-02 08:38:40 UTC
Size:
1.59 KB
patch
obsolete
>From cc1de8228182b965251d33f57a46b1bf6cf2621f Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Wed, 2 Aug 2017 10:35:49 +0200 >Subject: [PATCH] Bug 19021 - inventory column not sortable > >In inventory result page, items are shown in a JS DataTable. >A column is not sortable for no reason. > >This patch removes code that sets column not sortable, maybe some changes in table made it obsolete. > >Test plan : >- perform inventory >- look at result table >=> Without patch second column is not sortable >=> With patch all columns are sortable >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt | 5 ----- > 1 file changed, 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >index 6fcbff8..a8cc5b2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >@@ -32,11 +32,6 @@ function checkForm() { > $(document).ready(function(){ > inventorydt = $('#inventoryt').dataTable($.extend(true, {}, dataTablesDefaults, { > 'sPaginationType': 'full_numbers', >- [% IF compareinv2barcd %] >- "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 1 ] } ], >- [% ELSE %] >- "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0 ] } ], >- [% END %] > 'fnDrawCallback': function() { > //bind the click handler script to the newly created elements held in the table > $('.openWin').bind('click',function(e){ >-- >2.7.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 19021
:
65413
|
65417
|
65424
|
67138
|
67804
|
68715