Bugzilla – Attachment 15746 Details for
Bug 9449
Use Datatables on staff client cart
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 9449 [Revised] Use Datatables on staff client cart
SIGNED-OFF-Bug-9449-Revised-Use-Datatables-on-staf.patch (text/plain), 2.34 KB, created by
Bernardo Gonzalez Kriegel
on 2013-02-27 23:50:53 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 9449 [Revised] Use Datatables on staff client cart
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2013-02-27 23:50:53 UTC
Size:
2.34 KB
patch
obsolete
>From b360948f2a7b00106934af37e63aec234f02cd7c Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 22 Jan 2013 14:41:25 -0500 >Subject: [PATCH] [SIGNED-OFF] Bug 9449 [Revised] Use Datatables on staff > client cart > >Replace the tablesorter plugin with the DataTables plugin in the >staff client cart. > >To test, add multiple items to the Cart in the staff client. View the >cart and confirm that table sorting works correctly. In this >configuration there should be no pager and no results filtering. > >Revision corrects template path to datatables assets. > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> > >Comment: Sorting works, but sorting removed on Location column. >No errors. >--- > .../intranet-tmpl/prog/en/modules/basket/basket.tt | 16 ++++++++++++---- > 1 file changed, 12 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt >index 9989194..a7f767f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt >@@ -10,7 +10,10 @@ > </style> > [% ELSE %][% INCLUDE 'doc-head-close.inc' %] > <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> >- <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> >+<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> >+<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script> >+[% INCLUDE 'datatables-strings.inc' %] >+<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> > <script type="text/javascript"> > //<![CDATA[ > >@@ -65,9 +68,14 @@ function placeHold () { > $(".hold").text(_("Place Hold")); > $("#downloadcartc").empty(); > yuiToolbar(); >- $("#itemst").tablesorter({ >- headers: { 0: { sorter: false }} >- }); >+ $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "sDom": 't', >+ "aoColumnDefs": [ >+ { "aTargets": [ 0,3 ], "bSortable": false, "bSearchable": false }, >+ ], >+ "aaSorting": [[ 1, "asc" ]], >+ "bPaginate": false >+ })); > }); > > function yuiToolbar() { >-- >1.7.9.5
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 9449
:
14758
|
14773
|
15702
| 15746