View | Details | Raw Unified | Return to bug 9473
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/list.tt (-12 / +13 lines)
Lines 1-15 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Tools &rsaquo; Tags &rsaquo; [% IF ( do_it ) %]Review &rsaquo; [% ELSE %]Review tags[% END %]</title>
2
<title>Koha &rsaquo; Tools &rsaquo; Tags &rsaquo; [% IF ( do_it ) %]Review &rsaquo; [% ELSE %]Review tags[% END %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
3
[% INCLUDE 'doc-head-close.inc' %]
4
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
4
<link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" />
5
<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
6
[% INCLUDE 'datatables-strings.inc' %]
7
<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script>
5
<script type="text/javascript">
8
<script type="text/javascript">
6
//<![CDATA[
9
//<![CDATA[
7
    $.tablesorter.addParser({
8
        id: 'articles',
9
        is: function(s) {return false;  },
10
        format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
11
        type: 'text'
12
    });
13
    $(document).ready(function() {
10
    $(document).ready(function() {
14
        $(".delete").click(function (event) {
11
        $(".delete").click(function (event) {
15
            $(this).parent().parent().parent().addClass("selected");
12
            $(this).parent().parent().parent().addClass("selected");
Lines 19-28 Link Here
19
                    event.preventDefault();
16
                    event.preventDefault();
20
                }
17
                }
21
        });
18
        });
22
        $("#itemst").tablesorter({
19
        $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, {
23
            sortList: [[0,0]],
20
            "aoColumnDefs": [
24
            headers: { 0: { sorter: 'articles' },1: { sorter: false },2:{sorter:false}}
21
                { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
25
        });
22
            ],
23
            "aaSorting": [[ 0, "asc" ]],
24
            "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
25
            "iDisplayLength": 20,
26
            "sPaginationType": "four_button"
27
        }));
26
    });
28
    });
27
//]]>
29
//]]>
28
</script>
30
</script>
29
- 

Return to bug 9473