Subversion Repositories SmartDukaan

Rev

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

Rev 7616 Rev 7645
Line 434... Line 434...
434
    
434
    
435
    $('#submitNewAddress').live('click', function(){
435
    $('#submitNewAddress').live('click', function(){
436
    	var orderId = $(this).attr('orderId');
436
    	var orderId = $(this).attr('orderId');
437
    	changeShippingAddress(orderId);
437
    	changeShippingAddress(orderId);
438
    });
438
    });
-
 
439
    
-
 
440
    $('#display-store-ret-auth-options').live('click', function() {
-
 
441
    	$.colorbox({
-
 
442
            inline : true,
-
 
443
            width : "550px",
-
 
444
            height : "200px",
-
 
445
            href : "div#store-return-auth",
-
 
446
            onClosed : function() {
-
 
447
            	$('#store-return-form input[name=orderId], #store-return-form input[name=ticketId]').remove();
-
 
448
            	$("#store-return-auth").hide();
-
 
449
            }
-
 
450
        });
-
 
451
    	$("#store-return-form").append("<input type='hidden' name='orderId' value=" + $(this).attr('orderId') + "></input>");
-
 
452
        $("#store-return-form").append("<input type='hidden' name='ticketId' value=" + $(this).attr('ticketId') + "></input>");
-
 
453
        $("#store-return-auth").show();
-
 
454
    });
-
 
455
 
-
 
456
    $('#display-store-doa-auth-options').live('click', function() {
-
 
457
    	$.colorbox({
-
 
458
            inline : true,
-
 
459
            width : "550px",
-
 
460
            height : "200px",
-
 
461
            href : "div#store-doa-auth",
-
 
462
            onClosed : function() {
-
 
463
            	$('#store-doa-form input[name=orderId], #store-doa-form input[name=ticketId]').remove();
-
 
464
            	$("#store-doa-auth").hide();
-
 
465
            }
-
 
466
        });
-
 
467
    	$("#store-doa-form").append("<input type='hidden' name='orderId' value=" + $(this).attr('orderId') + "></input>");
-
 
468
        $("#store-doa-form").append("<input type='hidden' name='ticketId' value=" + $(this).attr('ticketId') + "></input>");
-
 
469
        $("#store-doa-auth").show();
-
 
470
    });
-
 
471
    		
-
 
472
    $('#auth-return-button').live('click', function() {
-
 
473
        $.ajax({
-
 
474
            type : "POST",
-
 
475
            url : "/crm/tickets!authorizeReturn",
-
 
476
            data : $('#store-return-form').serialize(),
-
 
477
            success : function(response) {
-
 
478
                $('#bottom-infopane').html(response);
-
 
479
            }
-
 
480
        });
-
 
481
        $.colorbox.close();
-
 
482
    });
-
 
483
    
-
 
484
    $('#auth-doa-button').live('click', function() {
-
 
485
    	$.ajax({
-
 
486
            type : "POST",
-
 
487
            url : "/crm/tickets!authorizeDOA",
-
 
488
            data : $('#store-doa-form').serialize(),
-
 
489
            success : function(response) {
-
 
490
                $('#bottom-infopane').html(response);
-
 
491
            }
-
 
492
        });
-
 
493
        $.colorbox.close();
-
 
494
    });
439
});
495
});