Subversion Repositories SmartDukaan

Rev

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

Rev 18867 Rev 18868
Line 584... Line 584...
584
		        method: "POST",
584
		        method: "POST",
585
		        url:  apihost + "shippings/submitcheck",
585
		        url:  apihost + "shippings/submitcheck",
586
		        data: formData,
586
		        data: formData,
587
		    },'json')
587
		    },'json')
588
		    .done(function(msg){ 
588
		    .done(function(msg){ 
589
		        if(msg==''){    
-
 
590
		        	var url = apihost + 'shippings/';
-
 
591
	        	    var newForm = $('<form>', {
-
 
592
	        	        'action': url,
-
 
593
	        	        'method':'post'
-
 
594
	        	    }).append($('<input>', {
-
 
595
	        	        'name': 'cart_details',
-
 
596
	        	        'value': localStorage.getItem('cart_details'),
-
 
597
	        	        'type': 'hidden'
-
 
598
	        	    }));
-
 
599
	        	    newForm.submit();
-
 
600
		        } else if(msg=='non_service'){
589
		        if(msg=='' || msg=='non_service'){    
601
		        	var url = apihost + 'shippings/';
590
		        	var url = apihost + 'shippings/';
602
	        	    var newForm = $('<form>', {
591
	        	    var newForm = $('<form>', {
603
	        	        'action': url,
592
	        	        'action': url,
604
	        	        'method':'post'
593
	        	        'method':'post'
605
	        	    }).append($('<input>', {
594
	        	    }).append($('<input>', {