Subversion Repositories SmartDukaan

Rev

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

Rev 27755 Rev 27763
Line 613... Line 613...
613
				function(index, checkbox) {
613
				function(index, checkbox) {
614
					checkbox.checked = coloredItems[index].active;
614
					checkbox.checked = coloredItems[index].active;
615
				});
615
				});
616
		});
616
		});
617
}
617
}
618
$(document).on('change', ".item-wrapper").find("input[type='checkbox']:first",
618
$(document).on('change', ".item-wrapper input[type='checkbox']:first",
619
	function() {
619
	function() {
620
		if (this.value == "0") {
620
		if (this.value == "0") {
621
			$(this).closest('.item-wrapper').find("input[type='checkbox']")
621
			$(this).closest('.item-wrapper').find("input[type='checkbox']")
622
				.slice(1).prop('checked', $(this).prop('checked'));
622
				.slice(1).prop('checked', $(this).prop('checked'));
623
		}
623
		}