Subversion Repositories SmartDukaan

Rev

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

Rev 31322 Rev 31330
Line 55... Line 55...
55
	$(document).on('click', 'select.criteria-item-catalogids+div > button', function() {
55
	$(document).on('click', 'select.criteria-item-catalogids+div > button', function() {
56
		if (changed) {
56
		if (changed) {
57
			let brands = $('.criteria-item-brands').val();
57
			let brands = $('.criteria-item-brands').val();
58
			console.log(brands);
58
			console.log(brands);
59
			$brandsContainer = $(this);
59
			$brandsContainer = $(this);
60
			var url = `${context}/entity?activeOnly=true&brands=${brands.join(",")}&categoryId=3&limit=0`;
60
			var url = `${context}/focusedEntity?activeOnly=true&brands=${brands.join(",")}&categoryId=3&limit=0`;
61
			$select = $('.criteria-item-catalogids');
61
			$select = $('.criteria-item-catalogids');
62
			console.log($select)
62
			console.log($select)
63
			$select.html('');
63
			$select.html('');
64
			if (brands.length > 0) {
64
			if (brands.length > 0) {
65
				doGetAjaxRequestHandler(url, function(response) {
65
				doGetAjaxRequestHandler(url, function(response) {