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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/pages/preferences.js (-9 / +11 lines)
Lines 1-10 Link Here
1
$(document).ready(function() {
2
    $("table.preferences").tablesorter({
3
        sortList: [[0,0]],
4
        headers: { 1: { sorter:false}}
5
    });
6
});
7
8
// We can assume 'KOHA' exists, as we depend on KOHA.AJAX
1
// We can assume 'KOHA' exists, as we depend on KOHA.AJAX
9
2
10
KOHA.Preferences = {
3
KOHA.Preferences = {
Lines 40-45 KOHA.Preferences = { Link Here
40
};
33
};
41
34
42
$( document ).ready( function () {
35
$( document ).ready( function () {
36
37
    $("table.preferences").dataTable($.extend(true, {}, dataTablesDefaults, {
38
        "sDom": 't',
39
        "aoColumnDefs": [
40
            { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }
41
        ],
42
        "bPaginate": false
43
    }));
44
43
    function mark_modified() {
45
    function mark_modified() {
44
        $( this.form ).find( '.save-all' ).removeAttr( 'disabled' );
46
        $( this.form ).find( '.save-all' ).removeAttr( 'disabled' );
45
        $( this ).addClass( 'modified' );
47
        $( this ).addClass( 'modified' );
Lines 96-106 $( document ).ready( function () { Link Here
96
    $(collapsible).toggle(
98
    $(collapsible).toggle(
97
        function () {
99
        function () {
98
            $(this).addClass("collapsed").removeClass("expanded").attr("title",MSG_CLICK_TO_EXPAND);
100
            $(this).addClass("collapsed").removeClass("expanded").attr("title",MSG_CLICK_TO_EXPAND);
99
            $(this).next("table").hide();
101
            $(this).next("div").hide();
100
        },
102
        },
101
        function () {
103
        function () {
102
            $(this).addClass("expanded").removeClass("collapsed").attr("title",MSG_CLICK_TO_COLLAPSE);
104
            $(this).addClass("expanded").removeClass("collapsed").attr("title",MSG_CLICK_TO_COLLAPSE);
103
            $(this).next("table").show();
105
            $(this).next("div").show();
104
        }
106
        }
105
    );
107
    );
106
108
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt (-2 / +4 lines)
Lines 1-7 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Administration &rsaquo; System preferences</title>
2
<title>Koha &rsaquo; Administration &rsaquo; System preferences</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="[% themelang %]/css/datatables.css" />
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>
5
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/preferences.css" />
8
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/preferences.css" />
6
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
9
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
7
<script type="text/javascript">
10
<script type="text/javascript">
8
- 

Return to bug 9444