Subversion Repositories SmartDukaan

Rev

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

Rev 24406 Rev 24410
Line 431... Line 431...
431
	else {
431
	else {
432
		bootbox.prompt(bootBoxObj);
432
		bootbox.prompt(bootBoxObj);
433
	}
433
	}
434
	
434
	
435
}
435
}
436
function getColorsForItems(catalogId, description, callback) {
436
function getColorsForItems(catalogId, itemId, description, callback) {
437
	bootBoxObj = { 
437
	bootBoxObj = { 
438
			size: "small",
438
			size: "small",
439
			className:"item-wrapper",
439
			className:"item-wrapper",
440
			title: "Active/Inactive - " + description, 
440
			title: description, 
441
			callback: callback,
441
			callback: callback,
442
			inputType:'checkbox',
442
			inputType:'checkbox',
443
	}
443
	}
444
	doGetAjaxRequestHandler(context+"/itemsByCatalogId?catalogId="+catalogId, function(response){
444
	doGetAjaxRequestHandler(context+"/itemsByCatalogId?catalogId="+catalogId +"&itemId=" + itemId, function(response){
445
		coloredItems = JSON.parse(response);
445
		coloredItems = JSON.parse(response);
446
		inputOptions = [{text:"All", value:"0", onclick:"toggleAll('itemIds')"}];
446
		inputOptions = [{text:"All", value:"0", onclick:"toggleAll('itemIds')"}];
447
		coloredItems.forEach(function(item){
447
		coloredItems.forEach(function(item){
448
			inputOptions.push({
448
			inputOptions.push({
449
				text:item.color,
449
				text:item.color,