Subversion Repositories SmartDukaan

Rev

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

Rev 26451 Rev 26452
Line 523... Line 523...
523
				value : item.id,
523
				value : item.id,
524
				selected : item.active
524
				selected : item.active
525
			});
525
			});
526
		});
526
		});
527
		bootBoxObj['inputOptions'] = inputOptions;
527
		bootBoxObj['inputOptions'] = inputOptions;
528
		bootbox.prompt(bootBoxObj);
528
		promptObj = bootbox.prompt(bootBoxObj);
529
		$('.item-wrapper').find("input[type='checkbox']").slice(1).each(
529
		$('.item-wrapper').find("input[type='checkbox']").slice(1).each(
530
				function(index, checkbox) {
530
				function(index, checkbox) {
531
					checkbox.checked = coloredItems[index].active;
531
					checkbox.checked = coloredItems[index].active;
532
				});
532
				});
533
		bootBoxObj.modal('show');
533
		promptObj.modal('show')
534
	});
534
	});
535
}
535
}
536
$(".item-wrapper").find("input[type='checkbox']:first").live(
536
$(".item-wrapper").find("input[type='checkbox']:first").live(
537
		'change',
537
		'change',
538
		function() {
538
		function() {