Subversion Repositories SmartDukaan

Rev

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

Rev 32979 Rev 33320
Line 185... Line 185...
185
 
185
 
186
$(document).on('click', 'select.criteria-catalogids+div > button', function() {
186
$(document).on('click', 'select.criteria-catalogids+div > button', function() {
187
	if (changed) {
187
	if (changed) {
188
		let brands = $(this).closest('.item-criteria').find('select').val();
188
		let brands = $(this).closest('.item-criteria').find('select').val();
189
		let led = $(this).closest('.item-criteria').find('input[name=led]').is(":checked");
189
		let led = $(this).closest('.item-criteria').find('input[name=led]').is(":checked");
-
 
190
		let tablet = $(this).closest('.item-criteria').find('input[name=tablet]').is(":checked");
190
		$brandsContainer = $(this);
191
		$brandsContainer = $(this);
191
		let categoryId = 3;
192
		let categoryId = 3;
192
		if (led) {
193
		if (led) {
193
			categoryId = 14202;
194
			categoryId = 14202;
194
		}
195
		}
-
 
196
		if(tablet) {
-
 
197
			categoryId = 10010;
-
 
198
		}
195
		var url = `${context}/entity?brands=${brands.join(",")}&categoryId=${categoryId}&limit=0`;
199
		var url = `${context}/entity?brands=${brands.join(",")}&categoryId=${categoryId}&limit=0`;
196
		$select = $brandsContainer.closest('.item-criteria').find('.criteria-catalogids');
200
		$select = $brandsContainer.closest('.item-criteria').find('.criteria-catalogids');
197
		$select.html('');
201
		$select.html('');
198
		if (brands.length > 0) {
202
		if (brands.length > 0) {
199
			doGetAjaxRequestHandler(url, function (response) {
203
			doGetAjaxRequestHandler(url, function (response) {