Subversion Repositories SmartDukaan

Rev

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

Rev 7162 Rev 7372
Line 631... Line 631...
631
 
631
 
632
        $("div#cancel-div").show();
632
        $("div#cancel-div").show();
633
        $('#cancel-body').ckeditor({toolbar : 'Basic', scayt_autoStartup : true});
633
        $('#cancel-body').ckeditor({toolbar : 'Basic', scayt_autoStartup : true});
634
}
634
}
635
 
635
 
-
 
636
function displayLimitedCancelOrderPopUp() {
-
 
637
	$.colorbox({
-
 
638
        inline : true,
-
 
639
        width : "650px",
-
 
640
        height : "550px",
-
 
641
        href : "div#cancel-div-limited",
-
 
642
        onClosed : function() {
-
 
643
            CKEDITOR.instances['cancel-body'].destroy(false);
-
 
644
            $("div#cancel-div-limited").hide();
-
 
645
        }
-
 
646
    });
-
 
647
 
-
 
648
    $("div#cancel-div-limited").show();
-
 
649
    $('#cancel-body').ckeditor({toolbar : 'Basic', scayt_autoStartup : true});
-
 
650
}
-
 
651
 
636
function cancelOrder(domId, ticketId, orderId, orderStatus, formData) {
652
function cancelOrder(domId, ticketId, orderId, orderStatus, formData) {
637
	if ($('#cancellationInitiator').val()) {
653
	if ($('#cancellationInitiator').val()) {
638
		var cancellationInitiator = $('#cancellationInitiator').val();
654
		var cancellationInitiator = $('#cancellationInitiator').val();
639
		var uri = "/crm/user-order-info!markOrderForCancellation?orderId=" + orderId
655
		var uri = "/crm/user-order-info!markOrderForCancellation?orderId=" + orderId
640
						+ "&cancellationInitiator=" + cancellationInitiator + "&" + formData;
656
						+ "&cancellationInitiator=" + cancellationInitiator + "&" + formData;
Line 978... Line 994...
978
        error : function() {
994
        error : function() {
979
        	location.reload();
995
        	location.reload();
980
        }
996
        }
981
    });
997
    });
982
	
998
	
983
}
-
 
984
999
}
-
 
1000