Subversion Repositories SmartDukaan

Rev

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

Rev 18994 Rev 19051
Line 50... Line 50...
50
    	$('#citydet').addClass('hidden');
50
    	$('#citydet').addClass('hidden');
51
    }
51
    }
52
});
52
});
53
	$(document).ready(function(){	
53
	$(document).ready(function(){	
54
		$('.tryagaintin').click(function(){
54
		$('.tryagaintin').click(function(){
-
 
55
			$('#tin').val('');
55
			$('.searchres').removeClass('hidden');
56
			$('.searchres').removeClass('hidden');
56
			$('.tryagaintin').addClass('hidden');
57
			$('.tryagaintin').addClass('hidden');
57
			$('#tindetail').empty();
58
			$('#tindetail').empty();
58
			
59
			
59
		});
60
		});
60
// 		$('#gettin').click(function(){
61
// 		$('#gettin').click(function(){
61
		$(document).on('submit', '#tinform', function(e){
62
		$(document).on('submit', '#tinform', function(e){
62
		
63
		
63
			var tin = $('#tin').val();
64
			var tin = $('#tin').val().trim();
64
// 			alert(tin);
65
// 			alert(tin);
65
			var value = "true";
66
			var value = "true";
66
			if(tin == '')
67
			if(tin == '')
67
		    {
68
		    {
68
		        value = "false";
69
		        value = "false";
Line 152... Line 153...
152
	                $('#alert_msg').addClass('hidden');
153
	                $('#alert_msg').addClass('hidden');
153
	            }, 2000);  
154
	            }, 2000);  
154
//	     return false;
155
//	     return false;
155
			 }
156
			 }
156
	    else{
157
	    else{
157
			 gettindet['pin'] = $('#pindet').val();
158
			 gettindet['pin'] = $('#pindet').val().trim();
158
			 gettindet['city'] = $('#citydet').val();
159
			 gettindet['city'] = $('#citydet').val().trim();
159
			 gettindet['mobile'] = $('#phonedet').val();
160
			 gettindet['mobile'] = $('#phonedet').val().trim();
160
			 $.ajax({
161
			 $.ajax({
161
					        method: "POST",
162
					        method: "POST",
162
					        url:  apihost + "tins/confirm",
163
					        url:  apihost + "tins/confirm",
163
					        data: gettindet,
164
					        data: gettindet,
164
					    },'json')
165
					    },'json')