Subversion Repositories SmartDukaan

Rev

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

Rev 26721 Rev 26748
Line 22... Line 22...
22
			'click',
22
			'click',
23
			function() {
23
			function() {
24
				
24
				
25
				var fofoId = $('#fofo-users').val()
25
				var fofoId = $('#fofo-users').val()
26
				console.log(fofoId)
26
				console.log(fofoId)
27
				
-
 
28
					var fofoStore  = $(this).data('fofostorecode');
-
 
29
				console.log(fofoStore)
-
 
30
				var url = "/indent/loadIndent?fofoId=" + fofoId + "&counterSize="
27
				var url = "/indent/loadIndent?fofoId=" + fofoId + "&counterSize="
31
				+ "TEN_LAC";
28
				+ "TEN_LAC";
32
		              doAjaxRequestHandler(context + url, "GET", function(response) {{}
29
		              doAjaxRequestHandler(context + url, "GET", function(response) {{}
33
			         
30
			         
34
			           
31
			           
Line 252... Line 249...
252
	
249
	
253
	$(".confirm_indent").live(
250
	$(".confirm_indent").live(
254
			'click',
251
			'click',
255
			function() {
252
			function() {
256
			  if(confirm("Are you sure to confirm the indent")== true){
253
			  if(confirm("Are you sure to confirm the indent")== true){
257
			 doPostAjaxRequestHandler(context + "/open-indent/confirm" ,
254
			 doPostAjaxRequestHandler(context + "/open-indent/confirm?fofoId=" + currentFofoId  ,
258
			  function(response) { 
255
			  function(response) { 
259
				  
256
				  
260
			  console.log(response); 
257
			  console.log(response); 
261
			  if (response =='true') { 
258
			  if (response =='true') { 
262
				  alert("successfully confirm"); 
259
				  alert("successfully confirm"); 
263
				  loadIndent('main-content');
260
				 // loadIndent('main-content');
264
			  } 
261
			  } 
265
             }); 
262
             }); 
266
			 
263
			 
267
	
264
	
268
			  }
265
			  }