Subversion Repositories SmartDukaan

Rev

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

Rev 34176 Rev 34177
Line 1666... Line 1666...
1666
            });
1666
            });
1667
        });
1667
        });
1668
 
1668
 
1669
 
1669
 
1670
        $(document).on('change', "#offer-months,#mk_offer_brand_filter", function () {
1670
        $(document).on('change', "#offer-months,#mk_offer_brand_filter", function () {
1671
            var month = $(this).val();
1671
            var monthSearch = $('#offer-months').val();
1672
            var brandFilter = $('#mk_offer_brand_filter').val();
1672
            var brandFilter = $('#mk_offer_brand_filter').val();
1673
            console.log("month - ", month)
1673
            console.log("monthSearch - ", monthSearch)
1674
            console.log("brandFilter - ", brandFilter)
1674
            console.log("brandFilter - ", brandFilter)
1675
            var url;
1675
            var url;
1676
            if (!brandFilter) {
1676
            if (!brandFilter) {
1677
                url = `${context}/published-offers?yearMonth=${month}`;
1677
                url = `${context}/published-offers?yearMonth=${monthSearch}`;
1678
            } else {
1678
            } else {
1679
                url = `${context}/published-offers?yearMonth=${month}&brandFilter=${brandFilter}`;
1679
                url = `${context}/published-offers?yearMonth=${monthSearch}&brandFilter=${brandFilter}`;
1680
            }
1680
            }
1681
            console.log("url - ", url);
1681
            console.log("url - ", url);
1682
            doGetAjaxRequestHandler(url, function (response) {
1682
            doGetAjaxRequestHandler(url, function (response) {
1683
                console.log(response);
-
 
1684
                $("#offer-container").html(response);
1683
                $("#offer-container").html(response);
1685
            });
1684
            });
1686
        });
1685
        });
1687
 
1686
 
1688
 
1687