Subversion Repositories SmartDukaan

Rev

Rev 14098 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
13758 anikendra 1
$(function(){
2
	$('.brandedit').on('click',function(){
3
		var that = $(this);
4
		var value = 0;
5
		if($(this).prop('checked')){
6
			value = 1;
7
		}
8
		$.post($(this).data('url'),{'id':$(this).data('id'),'displayed_in_preference_page':value},function(data){
9
			if(data.success){$(that).parent().append('Done');};
10
		})
11
	})
12
});