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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/datatables.js (+16 lines)
Lines 220-225 function dt_overwrite_html_sorting_localeCompare() { Link Here
220
            return (b > a) ? 1 : ((b < a) ? -1 : 0);
220
            return (b > a) ? 1 : ((b < a) ? -1 : 0);
221
        }
221
        }
222
    };
222
    };
223
224
    jQuery.fn.dataTableExt.oSort['num-html-asc']  = function(a,b) {
225
        var x = a.replace( /<.*?>/g, "" );
226
        var y = b.replace( /<.*?>/g, "" );
227
        x = parseFloat( x );
228
        y = parseFloat( y );
229
        return ((x < y) ? -1 : ((x > y) ?  1 : 0));
230
    };
231
232
    jQuery.fn.dataTableExt.oSort['num-html-desc'] = function(a,b) {
233
        var x = a.replace( /<.*?>/g, "" );
234
        var y = b.replace( /<.*?>/g, "" );
235
        x = parseFloat( x );
236
        y = parseFloat( y );
237
        return ((x < y) ?  1 : ((x > y) ? -1 : 0));
238
    };
223
}
239
}
224
240
225
// Sorting on string without accentued characters
241
// Sorting on string without accentued characters
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt (-1 / +21 lines)
Lines 1-8 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Acquisitions</title>
2
<title>Koha &rsaquo; Acquisitions</title>
3
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
5
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
6
[% INCLUDE 'datatables-strings.inc' %]
7
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
4
<script type="text/javascript">
8
<script type="text/javascript">
5
//<![CDATA[
9
//<![CDATA[
10
11
dt_overwrite_html_sorting_localeCompare();
12
6
$(document).ready(function() {
13
$(document).ready(function() {
7
    $('#showallbudgets').click(function() {
14
    $('#showallbudgets').click(function() {
8
	if ( $('#showallbudgets:checked').val() !== undefined) {
15
	if ( $('#showallbudgets:checked').val() !== undefined) {
Lines 18-23 $(document).ready(function() { Link Here
18
	    $('.bu_active').hide();
25
	    $('.bu_active').hide();
19
	}
26
	}
20
    });
27
    });
28
    var srlt = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
29
        "aoColumns": [
30
            null,
31
            null,
32
            null,
33
            null,
34
            { "sType": "num-html" },
35
            { "sType": "num-html" },
36
            null,
37
        ],
38
        'bPaginate': false,
39
        'bFilter': false,
40
        'bInfo': false,
41
    } ) );
21
});
42
});
22
//]]>
43
//]]>
23
</script>
44
</script>
24
- 

Return to bug 8099