From b3cec7bec331016896f91ef38f4a016aa2839db4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 17 Feb 2012 15:56:30 +0100 Subject: [PATCH] Bug 5345: DataTables integration in acquisition module [5] basketgroup.tt http://bugs.koha-community.org/show_bug.cgi?id=8105 Signed-off-by: Marijana Glavica Signed-off-by: Paul Poulain --- .../prog/en/modules/acqui/basketgroup.tt | 30 ++++++++++++------- 1 file 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 9ab47f3126..6327e22a44 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").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() { - -- 2.39.5
    Basket groupActionBasket groupAction
    -