Subversion Repositories SmartDukaan

Rev

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

Rev 18724 Rev 18730
Line 731... Line 731...
731
	    }).append($('<input>', {
731
	    }).append($('<input>', {
732
	        'name': 'addressid',
732
	        'name': 'addressid',
733
	        'value': $('p#confirmOrderText').attr('addressId'),
733
	        'value': $('p#confirmOrderText').attr('addressId'),
734
	        'type': 'hidden'
734
	        'type': 'hidden'
735
	    }));
735
	    }));
736
		history.checkoutForm=newForm;
736
		newForm.submit();
737
		setTimeout(function () {history.back();}, 5000);
-
 
738
	}else{
737
	}else{
739
		var url = apihost + 'checkout/?user_id='+me+'&cod=0';
738
		var url = apihost + 'checkout/?user_id='+me+'&cod=0';
740
	    var newForm = $('<form>', {
739
	    var newForm = $('<form>', {
741
	        'action': url,
740
	        'action': url,
742
	        'method':'post'
741
	        'method':'post'
Line 751... Line 750...
751
	    })).append($('<input>', {
750
	    })).append($('<input>', {
752
	        'name': 'cart_details',
751
	        'name': 'cart_details',
753
	        'value': localStorage.getItem('cart_details'),
752
	        'value': localStorage.getItem('cart_details'),
754
	        'type': 'hidden'
753
	        'type': 'hidden'
755
	    }));
754
	    }));
756
	    history.checkoutForm=newForm;
755
	    newForm.submit();
757
		setTimeout(function () {history.back();}, 5000);
-
 
758
	}
756
	}
759
});
757
});
760
 
758
 
761
$(document).on('click','.confirmprepaid', function(){
759
$(document).on('click','.confirmprepaid', function(){
762
	$('.confirmprepaid').addClass('confirmprepaidDisabled').removeClass('confirmprepaid');
760
	$('.confirmprepaid').addClass('confirmprepaidDisabled').removeClass('confirmprepaid');