Subversion Repositories SmartDukaan

Rev

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

Rev 33320 Rev 33622
Line 338... Line 338...
338
 
338
 
339
function itemCriteria($container) {
339
function itemCriteria($container) {
340
	let smartPhone = $container.find("input[name=smartphone]").is(":checked");
340
	let smartPhone = $container.find("input[name=smartphone]").is(":checked");
341
	let featuredPhone = $container.find("input[name=featuredphone]").is(":checked");
341
	let featuredPhone = $container.find("input[name=featuredphone]").is(":checked");
342
	let led = $container.find("input[name=led]").is(":checked");
342
	let led = $container.find("input[name=led]").is(":checked");
-
 
343
	let smartWatch = $container.find("input[name=smartwatch]").is(":checked");
343
	let catalogIds = $container.find('.criteria-catalogids').val() || [];
344
	let catalogIds = $container.find('.criteria-catalogids').val() || [];
344
	let excludeCatalogIds = [];
345
	let excludeCatalogIds = [];
345
	let excludeChecked = $container.find('input.exclude').is(':checked');
346
	let excludeChecked = $container.find('input.exclude').is(':checked');
346
	if (excludeChecked) {
347
	if (excludeChecked) {
347
		excludeCatalogIds = catalogIds;
348
		excludeCatalogIds = catalogIds;
Line 354... Line 355...
354
		catalogIds: catalogIds.map(Number),
355
		catalogIds: catalogIds.map(Number),
355
		excludeCatalogIds: excludeCatalogIds.map(Number),
356
		excludeCatalogIds: excludeCatalogIds.map(Number),
356
		brands: brands,
357
		brands: brands,
357
		smartPhone: smartPhone,
358
		smartPhone: smartPhone,
358
		featuredPhone: featuredPhone,
359
		featuredPhone: featuredPhone,
-
 
360
		smartWatch : smartWatch,
359
		led: led
361
		led: led
360
	};
362
	};
361
}
363
}
362
 
364
 
363
function loadOffer(domId) {
365
function loadOffer(domId) {