Subversion Repositories SmartDukaan

Rev

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

Rev 30492 Rev 30501
Line 280... Line 280...
280
	doAjaxGetDownload(context + "/schemes/download?startDateTime="
280
	doAjaxGetDownload(context + "/schemes/download?startDateTime="
281
		+ startDateTime + "&endDateTime=" + endDateTime,
281
		+ startDateTime + "&endDateTime=" + endDateTime,
282
		"SchemesReport.xlsx");
282
		"SchemesReport.xlsx");
283
}
283
}
284
 
284
 
285
function selectedbrand() {
285
function selectedbrand(categoryId) {
286
	var brands = $('#tag-listing-brands').val();
286
	var brands = $('#tag-listing-brands').val();
287
	console.log(brands);
-
 
288
	if (brands) {
287
	if (brands) {
289
		loadCatalogDescriptionByBrands(
288
		loadCatalogDescriptionByBrands(
290
			"tag-listing-items-description-container", brands);
289
			"tag-listing-items-description-container", categoryId, brands);
291
	}
290
	}
292
}
291
}
293
 
292
 
294
function categoryChanged() {
293
function categoryChanged() {
295
	let categoryId = $('#category-list').val();
294
	let categoryId = $('#category-list').val();
Line 368... Line 367...
368
		$('input[name="dateRange"]').daterangepicker(getRangedDatePicker(), dateRangeCallback);
367
		$('input[name="dateRange"]').daterangepicker(getRangedDatePicker(), dateRangeCallback);
369
	});
368
	});
370
 
369
 
371
}
370
}
372
 
371
 
373
function loadCatalogDescriptionByBrands(domId, brands) {
372
function loadCatalogDescriptionByBrands(domId, categoryId, brands) {
-
 
373
	let brandsString = brands.join(",")
374
	doPostAjaxRequestWithJsonHandler(context + '/getCatalogDescriptionByBrands',
374
	doGetAjaxRequestHandler(`${context}/getCatalogDescriptionByBrands?categoryId=${categoryId}&brands=${brandsString}`,
375
		JSON.stringify(brands), function (response) {
375
		function (response) {
376
			$('#' + domId).html(response);
376
			$('#' + domId).html(response);
377
			debugger;
-
 
378
			configureTagListingItemsDescriptionDropDown();
377
			configureTagListingItemsDescriptionDropDown();
379
		});
378
		});
380
 
379
 
381
}
380
}
382
 
381