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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt (-17 / +20 lines)
Lines 5-31 Link Here
5
[% IF ( delete_confirm ) %] › Confirm deletion[% END %]
5
[% IF ( delete_confirm ) %] › Confirm deletion[% END %]
6
[% IF ( else ) %]Authorized values[% END %]</title>
6
[% IF ( else ) %]Authorized values[% END %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
8
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
8
9
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
9
<link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" />
10
<script type="text/javascript" id="js">$(document).ready(function() {
10
<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
11
	// call the tablesorter plugin
11
[% INCLUDE 'datatables-strings.inc' %]
12
	$("#table_authorized_values").tablesorter({
12
<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script>
13
		sortList: [[1,0]],
13
<script type="text/javascript">
14
		headers: { 4: { sorter: false}, 5: { sorter: false}}
14
//<![CDATA[
15
		   		}).tablesorterPager({container: $("#pagertable_authorized_values"),positionFixed: false,size: 50});
15
 $(document).ready(function() {
16
    $("#table_authorized_values").dataTable($.extend(true, {}, dataTablesDefaults, {
17
        "aoColumnDefs": [
18
            { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
19
        ],
20
        "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
21
        "aaSorting": [[ 1, "asc" ]],
22
        "iDisplayLength": 20,
23
        "sPaginationType": "four_button"
24
    }));
16
25
17
    if ( $("#branches option:selected").length < 1 ) {
26
    if ( $("#branches option:selected").length < 1 ) {
18
        $("#branches option:first").attr("selected", "selected");
27
        $("#branches option:first").attr("selected", "selected");
19
    }
28
    }
20
}); </script>
29
    $('#icons').tabs();
21
30
});
22
<script type="text/JavaScript" language="JavaScript">
23
//<![CDATA[
24
     $(document).ready(function() {
25
        $('#icons').tabs();
26
     });
27
//]]>
31
//]]>
28
</script>
32
</script>
33
29
<style type="text/css">
34
<style type="text/css">
30
	fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
35
	fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
31
    fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-selected {background-color : #F4F8F9; }
36
    fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-selected {background-color : #F4F8F9; }
Lines 244-250 Link Here
244
<h3>Authorized values for category [% category %]:</h3>
249
<h3>Authorized values for category [% category %]:</h3>
245
250
246
[% IF ( loop ) %]<div id="pagertable_authorized_values">
251
[% IF ( loop ) %]<div id="pagertable_authorized_values">
247
[% INCLUDE 'table-pager.inc' perpage='50' %]
248
</div>[% END %]
252
</div>[% END %]
249
253
250
[% IF ( loop ) %]<table id="table_authorized_values" class="tablesorter">
254
[% IF ( loop ) %]<table id="table_authorized_values" class="tablesorter">
251
- 

Return to bug 9429