Subversion Repositories SmartDukaan

Rev

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

Rev 16247 Rev 18308
Line 19... Line 19...
19
            $('#' + domId).html(response);
19
            $('#' + domId).html(response);
20
            loadOrderInfo("bottom-infopane", orderId);
20
            loadOrderInfo("bottom-infopane", orderId);
21
            orderTable = $('#user-orders').dataTable({
21
            orderTable = $('#user-orders').dataTable({
22
                "aaSorting" : [ [ 1, 'desc' ] ],
22
                "aaSorting" : [ [ 1, 'desc' ] ],
23
              "bAutoWidth": false,
23
              "bAutoWidth": false,
24
              "aoColumns" : [{ "sWidth": "16%" },//order id
24
              "aoColumns" : [{ "sWidth": "10%" },//transaction id
-
 
25
                             { "sWidth": "10%" },//item desc
25
                             { "sWidth": "30%" },//item desc
26
                             { "sWidth": "30%" },//item desc
26
                             { "sWidth": "16%" },//created
27
                             { "sWidth": "14%" },//created
27
                             { "sWidth": "8%" },//amount
28
                             { "sWidth": "8%" },//amount
28
                             { "sWidth": "17%" },//status
29
                             { "sWidth": "17%" },//status
29
                             { "sWidth": "13%" }],//mobile no.
30
                             { "sWidth": "11%" }],//mobile no.
30
                "fnDrawCallback": function() { truncateText(125); },
31
                "fnDrawCallback": function() { truncateText(125); },
31
                "iDisplayLength" : 10,
32
                "iDisplayLength" : 10,
32
                "sDom" : 'T<"clear">lfrtip',
33
                "sDom" : 'T<"clear">lfrtip',
33
                "oTableTools" : {
34
                "oTableTools" : {
34
                    "sSwfPath" : "swf/copy_cvs_xls_pdf.swf"
35
                    "sSwfPath" : "swf/copy_cvs_xls_pdf.swf"
Line 522... Line 523...
522
    }
523
    }
523
    else if (activityType == "ESCALATE_TICKET") {
524
    else if (activityType == "ESCALATE_TICKET") {
524
        $.colorbox({
525
        $.colorbox({
525
            inline : true,
526
            inline : true,
526
            width : "675px",
527
            width : "675px",
527
            height : "800px",
528
            height : "560px",
528
            href : "div#escalation-div",
529
            href : "div#escalation-div",
529
            onClosed : function() {
530
            onClosed : function() {
530
                CKEDITOR.instances['escalation-mail-body'].destroy(false);
531
                CKEDITOR.instances['escalation-mail-body'].destroy(false);
531
                $("div#escalation-div").hide();
532
                $("div#escalation-div").hide();
532
                $('select#activity-type').val('OTHER');
533
                $('select#activity-type').val('OTHER');
Line 947... Line 948...
947
	if(($('#new-agent-id').val().length == 0)) {
948
	if(($('#new-agent-id').val().length == 0)) {
948
		$('#agent-email-error').html("Please enter the Email-ID");
949
		$('#agent-email-error').html("Please enter the Email-ID");
949
		$('#new-agent-id').addClass('agent-form-error');
950
		$('#new-agent-id').addClass('agent-form-error');
950
		formError = true;
951
		formError = true;
951
	}
952
	}
952
	if(($('#new-agent-role').val().length == 0)) {
-
 
953
		$('#agent-role-error').html("Please specify roles for the Agent");
-
 
954
		$('#new-agent-id').addClass('agent-form-error');
-
 
955
		formError = true;
-
 
956
	}else{
-
 
957
		var roles = $('#new-agent-role').val();
-
 
958
		if(roles.indexOf("Agent")>-1 && roles.indexOf("PMAgent")>-1){
-
 
959
			alert("Agent and PMAgent roles can't be assigned at the same time");
-
 
960
			$('#agent-role-error').html("Agent and PMAgent roles can't be assigned at the same time");
-
 
961
			$('#new-agent-id').addClass('agent-form-error');
-
 
962
			formError = true;
-
 
963
		}
-
 
964
	}
-
 
965
	if($('#create-password1').val().length == 0) {
953
	if($('#create-password1').val().length == 0) {
966
		$('#agent-password1-error').html("Please enter password");
954
		$('#agent-password1-error').html("Please enter password");
967
		$('#create-password1').addClass('agent-form-error');
955
		$('#create-password1').addClass('agent-form-error');
968
		formError = true;
956
		formError = true;
969
	} else if($('#create-password2').val().length == 0){
957
	} else if($('#create-password2').val().length == 0){