Subversion Repositories SmartDukaan

Rev

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

Rev 4793 Rev 5168
Line 345... Line 345...
345
            });
345
            });
346
		}
346
		}
347
	});
347
	});
348
}
348
}
349
 
349
 
-
 
350
function changeAgentRole(params){
-
 
351
	$.ajax({
-
 
352
		type : "POST",
-
 
353
		url : "/crm/agent!changeAgentRole",
-
 
354
		data : params,
-
 
355
		success : function(response) {
-
 
356
			alert("Agent role changed");
-
 
357
			$.colorbox.close();
-
 
358
			$('#infopane').html(response);
-
 
359
			var agentTable = $('#agents').dataTable({
-
 
360
                "aaSorting" : [ [ 1, 'asc' ] ],
-
 
361
                "bAutoWidth": false,
-
 
362
                "aoColumns" : [{ "sWidth": "12%", "sSortDataType": "dom-text", "sType": "numeric" },//AgentID
-
 
363
                               { "sWidth": "35%" },//Agent Name
-
 
364
                               { "sWidth": "40%" },//Email ID
-
 
365
                               { "sWidth": "13%", "sSortDataType": "dom-text", "sType": "numeric"}],//Manager ID
-
 
366
                "iDisplayLength" : 10,
-
 
367
                "sDom" : 'T<"clear">lfrtip',
-
 
368
                "oTableTools" : {
-
 
369
                    "sSwfPath" : "swf/copy_cvs_xls_pdf.swf"
-
 
370
                },
-
 
371
            });
-
 
372
		}
-
 
373
	});
-
 
374
}
-
 
375
 
350
function createActivity(domId, params) {
376
function createActivity(domId, params) {
351
    $.ajax({
377
    $.ajax({
352
        type : "POST",
378
        type : "POST",
353
        url : "/crm/activity",
379
        url : "/crm/activity",
354
        data : params,
380
        data : params,
Line 711... Line 737...
711
    });
737
    });
712
 
738
 
713
    $("div#change-password-div").show();
739
    $("div#change-password-div").show();
714
}
740
}
715
 
741
 
-
 
742
function changeAgentRolePopup(){
-
 
743
	$.colorbox({
-
 
744
        inline : true,
-
 
745
        width  : "375px",
-
 
746
        height : "350px",
-
 
747
        href   : "div#change-agent-role-div",
-
 
748
        onClosed : function() {
-
 
749
            $("div#change-agent-role-div").hide();
-
 
750
        }
-
 
751
    });
-
 
752
 
-
 
753
    $("div#change-agent-role-div").show();
-
 
754
}
716
 
755
 
717
function updateAgentPassword(){
756
function updateAgentPassword(){
718
	if(($('#change-password1').val().trim())==($('#change-password2').val().trim())){
757
	if(($('#change-password1').val().trim())==($('#change-password2').val().trim())){
719
		$.ajax({
758
		$.ajax({
720
			type : "POST",
759
			type : "POST",