Subversion Repositories SmartDukaan

Rev

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

Rev 35219 Rev 35497
Line 338... Line 338...
338
    if (changed) {
338
    if (changed) {
339
        let brands = $(this).closest('.item-criteria').find('select').val();
339
        let brands = $(this).closest('.item-criteria').find('select').val();
340
        let led = $(this).closest('.item-criteria').find('input[name=led]').is(":checked");
340
        let led = $(this).closest('.item-criteria').find('input[name=led]').is(":checked");
341
        let tablet = $(this).closest('.item-criteria').find('input[name=tablet]').is(":checked");
341
        let tablet = $(this).closest('.item-criteria').find('input[name=tablet]').is(":checked");
342
        let smartWatch = $(this).closest('.item-criteria').find('input[name=smartwatch]').is(":checked");
342
        let smartWatch = $(this).closest('.item-criteria').find('input[name=smartwatch]').is(":checked");
-
 
343
        let openBoxLapTops = $(this).closest('.item-criteria').find('input[name=openboxlaptops]').is(":checked");
343
        $brandsContainer = $(this);
344
        $brandsContainer = $(this);
344
        let categoryId = 3;
345
        let categoryId = 3;
345
        if (led) {
346
        if (led) {
346
            categoryId = 14202;
347
            categoryId = 14202;
347
        }
348
        }
Line 349... Line 350...
349
            categoryId = 10010;
350
            categoryId = 10010;
350
        }
351
        }
351
        if (smartWatch) {
352
        if (smartWatch) {
352
            categoryId = 6;
353
            categoryId = 6;
353
        }
354
        }
-
 
355
 
-
 
356
        if (openBoxLapTops) {
-
 
357
            categoryId = 17007;
-
 
358
        }
354
        var url = `${context}/entity?brands=${brands.join(",")}&categoryId=${categoryId}&limit=0`;
359
        var url = `${context}/entity?brands=${brands.join(",")}&categoryId=${categoryId}&limit=0`;
355
        $select = $brandsContainer.closest('.item-criteria').find('.criteria-catalogids');
360
        $select = $brandsContainer.closest('.item-criteria').find('.criteria-catalogids');
356
        $select.html('');
361
        $select.html('');
357
        if (brands.length > 0) {
362
        if (brands.length > 0) {
358
            doGetAjaxRequestHandler(url, function (response) {
363
            doGetAjaxRequestHandler(url, function (response) {