From 7103e552975bde6ea830948724e674ffdf2a76e4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart <jonathan.druart@biblibre.com> Date: Fri, 17 Feb 2012 15:55:18 +0100 Subject: [PATCH 02/16] Bug 5345: DataTables integration in acquisition module [2] acqui-home.tt --- .../prog/en/modules/acqui/acqui-home.tt | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt index 03cdc2d..d13ef5b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt @@ -1,6 +1,10 @@ [% INCLUDE 'doc-head-open.inc' %] <title>Koha › Acquisitions</title> +<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> [% INCLUDE 'doc-head-close.inc' %] +<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[ $(document).ready(function() { @@ -18,6 +22,9 @@ $(document).ready(function() { $('.bu_active').hide(); } }); + var srlt = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, { + "sPaginationType": "four_button" + } ) ); }); //]]> </script> -- 1.7.7.3