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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt (-2 / +24 lines)
Lines 222-228 Link Here
222
                "iDisplayLength": 20,
222
                "iDisplayLength": 20,
223
                "sPaginationType": "full_numbers"
223
                "sPaginationType": "full_numbers"
224
            }));
224
            }));
225
            $("#filter_s").html('<p><a href="#" id="filter_system"><i class="fa fa-filter"></i> '+txtActivefilter+'</a>');
225
            $("#filter_s").html('<p><a href="#" id="filter_system"><i class="fa fa-filter"></i> '+txtActivefilter+'</a><span class="pull-right"><input type="checkbox" id="show_pos" checked="checked"> <i class="fa fa-shopping-cart"></i> Show items for sale</input> <input type="checkbox" id="show_invoice" checked="checked"> <i class="fa fa-id-card-o"></i> Show items for invoicing</input></span></p>');
226
            $('#filter_system').click(function(e) {
226
            $('#filter_system').click(function(e) {
227
                e.preventDefault();
227
                e.preventDefault();
228
                if ($(this).hasClass('filtered')) {
228
                if ($(this).hasClass('filtered')) {
Lines 238-243 Link Here
238
238
239
            //Start filtered
239
            //Start filtered
240
            $('#filter_system').click();
240
            $('#filter_system').click();
241
242
            $('#show_pos').click(function(e){
243
                var filterValue;
244
                if($(this).prop("checked") == true){
245
                    filterValue = 'Sale'
246
                }
247
                else if($(this).prop("checked") == false){
248
                    filterValue = '^((?<!(Sale)).)*$'
249
                }
250
                table_debit_types.fnFilter(filterValue, 5, true, false);
251
            });
252
            
253
            $('#show_invoice').click(function(e){
254
                var filterValue;
255
                if($(this).prop("checked") == true){
256
                    filterValue = 'Invoicing'
257
                }
258
                else if($(this).prop("checked") == false){
259
                    filterValue = '^((?!(Invoicing)).)*$'
260
                }
261
                table_debit_types.fnFilter(filterValue, 5, true, false);
262
            });
263
241
        });
264
        });
242
    </script>
265
    </script>
243
[% END %]
266
[% END %]
244
- 

Return to bug 24491