Subversion Repositories SmartDukaan

Rev

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

Rev 17919 Rev 17932
Line 285... Line 285...
285
        $("#showmore").html('Show More');    
285
        $("#showmore").html('Show More');    
286
    }
286
    }
287
});
287
});
288
 
288
 
289
 
289
 
-
 
290
$(document).on("click", "form input[type=submit]", function() {
-
 
291
        $("input[type=submit]", $(this).parents("form")).removeAttr("clicked");
-
 
292
        $(this).attr("clicked", "true");
-
 
293
});
290
 
294
 
291
$(document).on('submit', '#form2', function(){
295
$(document).on('submit', '#form2', function(e){
-
 
296
	var payOption = $("input[type=submit][clicked=true]").data('name');
292
	var formData = {
297
	var formData = {
293
        'name'              : $('#name').val(),
298
        'name'              : $('#name').val(),
294
        'line1'             : $('#line1').val(),
299
        'line1'             : $('#line1').val(),
295
        'city'    			: $('#city').val(),
300
        'city'    			: $('#city').val(),
296
        'phone'				: $('#phone').val(),
301
        'phone'				: $('#phone').val(),
297
        'state'				: $('#state').val(),
302
        'state'				: $('#state').val(),
298
        'pin'				: $('#pin').val()
303
        'pin'				: $('#pin').val()
299
    };
304
    };
300
    
-
 
301
    /*debugger;
-
 
302
    if (!$("#form2")[0].checkValidity()) {
-
 
303
    	return;
-
 
304
    }*/
-
 
305
    
-
 
306
    payOption = $(this).data('name');
-
 
307
    $.ajax(
305
    $.ajax(
308
    	{
306
    	{
309
                method: "POST",
307
                method: "POST",
310
                url:  apihost + "shippings/submitcheck",
308
                url:  apihost + "shippings/submitcheck",
311
                data: formData,
309
                data: formData,