Subversion Repositories SmartDukaan

Rev

Rev 28723 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28723 Rev 37101
Line 6... Line 6...
6
		{
6
		{
7
		
7
		
8
		var brand = $('#block-brand').val();
8
		var brand = $('#block-brand').val();
9
		var fofoIds = $('#selected-block-ids').val();
9
		var fofoIds = $('#selected-block-ids').val();
10
		console.log("fofoIds"+fofoIds);
10
		console.log("fofoIds"+fofoIds);
-
 
11
		if (brand == null || $.trim(brand) === "" || $.trim(brand) === "0") {
-
 
12
			alert("Please select a brand first");
-
 
13
			return;
-
 
14
		}
11
		if (confirm("Are you sure you want to submit") == true) {
15
		if (confirm("Are you sure you want to submit") == true) {
12
			doPostAjaxRequestHandler(context + "/getRetailerBlockBrandMappping?brand=" + brand + "&fofoIds=" + fofoIds,
16
			doPostAjaxRequestHandler(context + "/getRetailerBlockBrandMappping?brand=" + brand + "&fofoIds=" + fofoIds,
13
				function(response) {
17
				function(response) {
14
					if (response = true) {
18
					if (response = true) {
15
 
19