Subversion Repositories SmartDukaan

Rev

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

Rev 24159 Rev 24161
Line 41... Line 41...
41
 
41
 
42
	$("#location").live(
42
	$("#location").live(
43
			'click',
43
			'click',
44
			function() {
44
			function() {
45
				if ($(this).is(":checked")) {
45
				if ($(this).is(":checked")) {
46
					var emailIdOrMobileNumber = $(
-
 
47
							'#retailer-details-search-text').val();
-
 
48
					var email = $('#emailId').val();
-
 
49
					doGetAjaxRequestHandler(context
-
 
50
							+ "/userDetails?emailIdOrMobileNumber="
-
 
51
							+ emailIdOrMobileNumber, function(response) {
-
 
52
						if (response == "true") {
-
 
53
							$("#divLocation").show();
-
 
54
						} else {
-
 
55
							alert("user can not Exist")
-
 
56
							$("#location").prop("checked", false);
-
 
57
						}
46
					
58
					});
47
					$("#divLocation").show();	
59
 
48
 
60
				} else {
49
				} else {
61
					$("#divLocation").hide();
50
					$("#divLocation").hide();
62
				}
51
				}
63
			});
52
			});