From e8a5d56453b703adeb65fe08f1b9b3ac9c28386e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 17 Feb 2012 15:56:30 +0100 Subject: [PATCH 1/1] Bug 5345: DataTables integration in acquisition module [5] basketgroup.tt --- .../prog/en/modules/acqui/basketgroup.tt | 30 +++++++++++++------ 1 files changed, 20 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt index 572d353..54918be 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt @@ -1,6 +1,9 @@ [% INCLUDE 'doc-head-open.inc' %] Koha › Basket grouping for [% booksellername |html %] + [% INCLUDE 'doc-head-close.inc' %] + + [% IF ( grouping ) %] @@ -100,6 +103,17 @@ function submitForm(form) { // $("#toolbar").empty(); yuiToolbar(); $("#basket_groups > ul").tabs(); + + $("table").dataTable($.extend(true, {}, dataTablesDefaults, { + "aoColumnDefs": [ + { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, + ], + "bAutoWidth": false, + "bPaginate": false, + "bInfo": false, + "bFilter": false, + } )); + }); // YUI Toolbar Functions @@ -250,10 +264,10 @@ function yuiToolbar() { [% ELSE %]
  • Closed
  • [% END %]
    - +
    - + @@ -267,13 +281,11 @@ function yuiToolbar() { [% END %] - - [% END %] @@ -282,10 +294,10 @@ function yuiToolbar() {
    Basket groupActionBasket groupAction
    + -
    -
    +
    - +
    - + @@ -301,8 +313,6 @@ function yuiToolbar() { - -- 1.7.7.3
    Basket groupActionBasket groupAction
    -