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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersuggestion.tt (-4 / +5 lines)
Lines 8-22 Link Here
8
 $(document).ready(function() {
8
 $(document).ready(function() {
9
    var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, {
9
    var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, {
10
        "aoColumnDefs": [
10
        "aoColumnDefs": [
11
            { "aTargets": [ 0 ],  "bVisible": false, "bSearchable": false },
11
            { "aTargets": [ 0 ],  "bVisible": false, "bSearchable": true }, // must be searchable for fnFilter
12
            { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
12
            { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
13
        ],
13
        ],
14
        "sPaginationType": "four_button"
14
        "sPaginationType": "four_button"
15
    } ) );
15
    } ) );
16
    $("#show_only_mine").on('click', function(){
16
    $("#show_only_mine").on('click', function(e){
17
        e.preventDefault();
17
        suggestionst.fnFilter('^[% loggedinuser %]$', 0, true);
18
        suggestionst.fnFilter('^[% loggedinuser %]$', 0, true);
18
    });
19
    });
19
    $("#show_all").on('click', function(){
20
    $("#show_all").on('click', function(e){
21
        e.preventDefault();
20
        suggestionst.fnFilter('', 0 );
22
        suggestionst.fnFilter('', 0 );
21
    });
23
    });
22
 });
24
 });
23
- 

Return to bug 17899