Subversion Repositories SmartDukaan

Rev

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

Rev 18851 Rev 18852
Line 566... Line 566...
566
 
566
 
567
$(document).on('submit', '#form2', function(e){
567
$(document).on('submit', '#form2', function(e){
568
	var address_id = $('p#confirmOrderText').attr('addressId');
568
	var address_id = $('p#confirmOrderText').attr('addressId');
569
	var payOption = $("input[type=submit][clicked=true]").data('name');
569
	var payOption = $("input[type=submit][clicked=true]").data('name');
570
	if(payOption!='add'){
570
	if(payOption!='add'){
571
		if(address_id!=''||address_id!=undefined){
-
 
572
			if(payOption=='codoption'){
-
 
573
				handleConfirmOrder(payOption,address_id);
-
 
574
			}else if(payOption=='creditoption'){
-
 
575
				handleConfirmOrder(payOption,address_id);
-
 
576
			}
-
 
577
			return false;
-
 
578
		}else{
-
 
579
			var formData = {
571
			var formData = {
580
			        'name'              : $('#name').val(),
572
			        'name'              : $('#name').val(),
581
			        'line1'             : $('#line1').val(),
573
			        'line1'             : $('#line1').val(),
582
			        'city'              : $('#city').val(),
574
			        'city'              : $('#city').val(),
583
			        'phone'             : $('#phone').val(),
575
			        'phone'             : $('#phone').val(),
Line 611... Line 603...
611
			        	    }));
603
			        	    }));
612
			        	    newForm.submit();
604
			        	    newForm.submit();
613
			    		}
605
			    		}
614
			        }                           
606
			        }                           
615
			    });
607
			    });
616
			    return false;
608
			    return false;  
617
		}     
-
 
618
	}else{
609
	}else{
619
		$('input.submit_check').prop( "disabled", true );
610
		$('input.submit_check').prop( "disabled", true );
620
		$('#loadingModal').modal('show');
611
		$('#loadingModal').modal('show');
621
		var formData = {
612
		var formData = {
622
		        'name'              : $('#name').val(),
613
		        'name'              : $('#name').val(),