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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-24 / +36 lines)
Lines 9-41 Link Here
9
</title>
9
</title>
10
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
11
[% INCLUDE 'calendar.inc' %]
11
[% INCLUDE 'calendar.inc' %]
12
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
12
<link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" />
13
<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
14
[% INCLUDE 'datatables-strings.inc' %]
15
<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script>
13
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
16
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
14
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script>
17
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script>
15
<script type="text/JavaScript" language="JavaScript">
18
<script type="text/JavaScript">
16
//<![CDATA[
19
//<![CDATA[
17
$.tablesorter.addParser({
18
    id: 'articles', 
19
    is: function(s) {return false;  }, 
20
    format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); }, 
21
    type: 'text' 
22
});
23
$(document).ready(function() {
20
$(document).ready(function() {
24
    $('#finesholdsissues').tabs();
21
    $('#finesholdsissues').tabs({
25
	$.tablesorter.defaults.widgets = ['zebra'];
22
        // Correct table sizing for tables hidden in tabs
26
	$("#issuest").tablesorter({[% IF ( dateformat_metric ) %]
23
        // http://www.datatables.net/examples/api/tabs_and_scrolling.html
27
		dateFormat: 'uk',[% END %]
24
        "show": function(event, ui) {
28
        headers: { 1: { sorter: 'articles'},8:{sorter:false},9:{sorter:false }}
25
            var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable();
29
	}); 
26
            if ( oTable.length > 0 ) {
30
	$("#relissuest").tablesorter({[% IF ( dateformat_metric ) %]
27
                oTable.fnAdjustColumnSizing();
31
		dateFormat: 'uk',[% END %]
28
            }
32
		headers: { 1: { sorter: 'articles'},8:{sorter:false},9:{sorter:false }}
29
        }
33
	}); 
30
    } );
34
	$("#holdst").tablesorter({[% IF ( dateformat_metric ) %]
31
    $("#issuest").dataTable($.extend(true, {}, dataTablesDefaults, {
35
		dateFormat: 'uk',[% END %]
32
        "sDom": 't',
36
		sortList: [[0,0]],
33
        "aoColumnDefs": [
37
		headers: { 1: { sorter: 'articles' },5: { sorter: false }}
34
            { "aTargets": [ -1,-2 ], "bSortable": false, "bSearchable": false }
38
	}); 
35
        ],
36
        "bPaginate": false
37
    }));
38
    $("#relissuest").dataTable($.extend(true, {}, dataTablesDefaults, {
39
        "sDom": 't',
40
        "aoColumnDefs": [
41
            { "aTargets": [ 0,8 ], "bSortable": false, "bSearchable": false }
42
        ],
43
        "bPaginate": false
44
    }));
45
    $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
46
        "sDom": 't',
47
        "aoColumnDefs": [
48
            { "aTargets": [ -1,-2 ], "bSortable": false, "bSearchable": false }
49
        ],
50
        "bPaginate": false
51
    }));
39
    [% IF ( picture ) %]
52
    [% IF ( picture ) %]
40
    // new YAHOO.widget.Button("delpicture");   // FIXME: formatting mismatch between YUI and normal button
53
    // new YAHOO.widget.Button("delpicture");   // FIXME: formatting mismatch between YUI and normal button
41
	$('#delpicture').click(function(){
54
	$('#delpicture').click(function(){
42
- 

Return to bug 9462