Subversion Repositories SmartDukaan

Rev

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

Rev 27911 Rev 27916
Line 129... Line 129...
129
	});
129
	});
130
	newTargetSlab.find("select.criteria-brands").chosen({no_results_text: "Oops, nothing found!"});
130
	newTargetSlab.find("select.criteria-brands").chosen({no_results_text: "Oops, nothing found!"});
131
	//createSlabFrom(currentHtml);
131
	//createSlabFrom(currentHtml);
132
});
132
});
133
 
133
 
134
$(document).on('click', 'select.criteria-brands', function(){
134
$(document).on('click', 'select.criteria-catalogids+div > button', function(){
135
	$btn = $(this).next().find('button');
-
 
136
	if(changed) {
135
	if(changed) {
137
		let brands = $btn.closest('.item-criteria').find('select').val();
136
		let brands = $(this).closest('.item-criteria').find('select').val();
138
		$brandsContainer = $btn;
137
		$brandsContainer = $(this);
139
		var url = `${context}/entity?brands=${brands.join(",")}&categoryId=3&limit=0`;
138
		var url = `${context}/entity?brands=${brands.join(",")}&categoryId=3&limit=0`;
140
		$select = $brandsContainer.closest('.item-criteria').find('.criteria-catalogids');
139
		$select = $brandsContainer.closest('.item-criteria').find('.criteria-catalogids');
141
		$select.html('');
140
		$select.html('');
142
		if(brands.length > 0) {
141
		if(brands.length > 0) {
143
			doGetAjaxRequestHandler(url, function(response) {
142
			doGetAjaxRequestHandler(url, function(response) {