Subversion Repositories SmartDukaan

Rev

Rev 31224 | Rev 31566 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31224 Rev 31225
Line 289... Line 289...
289
    $(document).ready(function () {
289
    $(document).ready(function () {
290
 
290
 
291
        $("select.criteria-partnertype").chosen({no_results_text: "Oops, nothing found!"});
291
        $("select.criteria-partnertype").chosen({no_results_text: "Oops, nothing found!"});
292
 
292
 
293
 
293
 
-
 
294
        $.fn.dataTable.ext.search.push(function (settings, data, dataIndex) {
294
        let partnerTypes = $("select.criteria-partnertype").val();
295
            let partnerTypes = $("select.criteria-partnertype").val();
295
        if (typeof partnerTypes != "undefined") {
296
            if (typeof partnerTypes != "undefined") {
296
            $.fn.dataTable.ext.search.push(function (settings, data, dataIndex) {
-
 
297
                var tablePartnerType = data[2];
297
                var tablePartnerType = data[2];
298
                var lastMonthSale = data[7];
298
                var lastMonthSale = data[7];
299
 
299
 
300
                console.log(lastMonthSale)
300
                console.log(lastMonthSale)
301
                lastMonthSale = lastMonthSale.replace(/,/g, "");
301
                lastMonthSale = lastMonthSale.replace(/,/g, "");
Line 313... Line 313...
313
                }
313
                }
314
                if (!partnerTypes.includes(tablePartnerType)) {
314
                if (!partnerTypes.includes(tablePartnerType)) {
315
                    return true;
315
                    return true;
316
                }
316
                }
317
                return false;
317
                return false;
318
            });
318
            }
-
 
319
            return true;
319
        }
320
        });
320
 
-
 
321
        $('#authretailerstats thead tr').clone(true).appendTo('#authretailerstats thead');
321
        $('#authretailerstats thead tr').clone(true).appendTo('#authretailerstats thead');
322
        $('#authretailerstats thead tr:eq(1) th').each(function (i) {
322
        $('#authretailerstats thead tr:eq(1) th').each(function (i) {
323
            var title = $(this).text();
323
            var title = $(this).text();
324
            $(this).html('<input type="text" style = "width:60%;" placeholder="Search ' + title + '" />');
324
            $(this).html('<input type="text" style = "width:60%;" placeholder="Search ' + title + '" />');
325
 
325