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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/datatables.inc (+2 lines)
Lines 23-27 Link Here
23
    var MSG_DT_COPY_SUCCESS_ONE = _("Copied one row to clipboard");
23
    var MSG_DT_COPY_SUCCESS_ONE = _("Copied one row to clipboard");
24
    var MSG_DT_COPY_SUCCESS_X = _("Copied %d rows to clipboard");
24
    var MSG_DT_COPY_SUCCESS_X = _("Copied %d rows to clipboard");
25
    var MSG_CLEAR_FILTER = _("Clear filter");
25
    var MSG_CLEAR_FILTER = _("Clear filter");
26
    var MSG_ACTIVATE_FILTERS = _("Activate filters");
27
    var MSG_DEACTIVATE_FILTERS = _("Deactivate filters");
26
</script>
28
</script>
27
[% Asset.js("js/datatables.js") | $raw %]
29
[% Asset.js("js/datatables.js") | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/table_filters.js (-3 / +2 lines)
Lines 23-29 function activate_filters(id) { Link Here
23
    }
23
    }
24
24
25
    $('#' + id + '_activate_filters')
25
    $('#' + id + '_activate_filters')
26
        .html('<i class="fa fa-filter"></i> ' + _("Deactivate filters") )
26
        .html('<i class="fa fa-filter"></i> ' + MSG_DEACTIVATE_FILTERS )
27
        .unbind('click')
27
        .unbind('click')
28
        .click(function() {
28
        .click(function() {
29
            deactivate_filters(id);
29
            deactivate_filters(id);
Lines 41-47 function deactivate_filters(id) { Link Here
41
    filters_row.hide();
41
    filters_row.hide();
42
42
43
    $('#' + id + '_activate_filters')
43
    $('#' + id + '_activate_filters')
44
        .html('<i class="fa fa-filter"></i> ' + _("Activate filters") )
44
        .html('<i class="fa fa-filter"></i> ' + MSG_ACTIVATE_FILTERS )
45
        .unbind('click')
45
        .unbind('click')
46
        .click(function() {
46
        .click(function() {
47
            activate_filters(id);
47
            activate_filters(id);
48
- 

Return to bug 24046