Bugzilla – Attachment 14758 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]
Bug 9449 - Use Datatables on staff client cart
Bug-9449---Use-Datatables-on-staff-client-cart.patch (text/plain), 2.19 KB, created by
Owen Leonard
on 2013-01-22 19:43:46 UTC
(
hide
)
Description:
Bug 9449 - Use Datatables on staff client cart
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2013-01-22 19:43:46 UTC
Size:
2.19 KB
patch
obsolete
>From d7b2cc058faecdd1dd0b8f707f378785e2e2f3c5 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 22 Jan 2013 14:41:25 -0500 >Subject: [PATCH] Bug 9449 - Use Datatables on staff client cart >Content-Type: text/plain; charset="utf-8" > >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. >--- > .../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..e23ba90 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="/intranet-tmpl/prog/en/css/datatables.css" /> >+<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script> >+[% INCLUDE 'datatables-strings.inc' %] >+<script type="text/javascript" src="/intranet-tmpl/prog/en/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