Subversion Repositories SmartDukaan

Rev

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

Rev 31406 Rev 31409
Line 335... Line 335...
335
				console.log(response.response)
335
				console.log(response.response)
336
 
336
 
337
				var data = response.response;
337
				var data = response.response;
338
 
338
 
339
				if (data != null) {
339
				if (data != null) {
-
 
340
 
-
 
341
					$('#lead-detail-view').hide();
340
					$('input[name="outletName"]').val(data.outletName);
342
					$('input[name="outletName"]').val(data.outletName);
341
					$('input[name="counterSize"]').val(data.counterSize);
343
					$('input[name="counterSize"]').val(data.counterSize);
342
				}
344
				}
343
 
345
 
344
			});
346
			});
Line 550... Line 552...
550
			console.log(leadDetailObject);
552
			console.log(leadDetailObject);
551
 
553
 
552
			if (confirm("Are you sure you want to add lead detail!") == true) {
554
			if (confirm("Are you sure you want to add lead detail!") == true) {
553
				doPostAjaxRequestWithJsonHandler(context + "/leadDetail", JSON.stringify(leadDetailObject), function(response) {
555
				doPostAjaxRequestWithJsonHandler(context + "/leadDetail", JSON.stringify(leadDetailObject), function(response) {
554
					console.log(response);
556
					console.log(response);
555
					if(response == 'true'){
557
					if (response == 'true') {
556
						alert("Submit Successfully");
558
						alert("Submit Successfully");
557
					} 
559
					}
558
 
560
 
559
				});
561
				});
560
			}
562
			}
561
 
563
 
562
		});
564
		});