Subversion Repositories SmartDukaan

Rev

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

Rev 6985 Rev 7162
Line 286... Line 286...
286
			
286
			
287
			var agentTable = $('#agents').dataTable({
287
			var agentTable = $('#agents').dataTable({
288
                "aaSorting" : [ [ 1, 'asc' ] ],
288
                "aaSorting" : [ [ 1, 'asc' ] ],
289
                "bAutoWidth": false,
289
                "bAutoWidth": false,
290
                "aoColumns" : [{ "sWidth": "12%", "sSortDataType": "dom-text", "sType": "numeric" },//AgentID
290
                "aoColumns" : [{ "sWidth": "12%", "sSortDataType": "dom-text", "sType": "numeric" },//AgentID
291
                               { "sWidth": "35%" },//Agent Name
291
                               { "sWidth": "25%" },//Agent Name
292
                               { "sWidth": "40%" },//Email ID
292
                               { "sWidth": "30%" },//Email ID
-
 
293
                               { "sWidth": "20%" },//Role
293
                               { "sWidth": "13%", "sSortDataType": "dom-text", "sType": "numeric"}],//Manager ID
294
                               { "sWidth": "13%", "sSortDataType": "dom-text", "sType": "numeric"}],//Manager ID
294
                "iDisplayLength" : 10,
295
                "iDisplayLength" : 10,
295
                "sDom" : 'T<"clear">lfrtip',
296
                "sDom" : 'T<"clear">lfrtip',
296
                "oTableTools" : {
297
                "oTableTools" : {
297
                    "sSwfPath" : "swf/copy_cvs_xls_pdf.swf"
298
                    "sSwfPath" : "swf/copy_cvs_xls_pdf.swf"
Line 415... Line 416...
415
			$('#infopane').html(response);
416
			$('#infopane').html(response);
416
			var agentTable = $('#agents').dataTable({
417
			var agentTable = $('#agents').dataTable({
417
                "aaSorting" : [ [ 1, 'asc' ] ],
418
                "aaSorting" : [ [ 1, 'asc' ] ],
418
                "bAutoWidth": false,
419
                "bAutoWidth": false,
419
                "aoColumns" : [{ "sWidth": "12%", "sSortDataType": "dom-text", "sType": "numeric" },//AgentID
420
                "aoColumns" : [{ "sWidth": "12%", "sSortDataType": "dom-text", "sType": "numeric" },//AgentID
420
                               { "sWidth": "35%" },//Agent Name
421
                               { "sWidth": "25%" },//Agent Name
421
                               { "sWidth": "40%" },//Email ID
422
                               { "sWidth": "30%" },//Email ID
-
 
423
                               { "sWidth": "20%" },//Role
422
                               { "sWidth": "13%", "sSortDataType": "dom-text", "sType": "numeric"}],//Manager ID
424
                               { "sWidth": "13%", "sSortDataType": "dom-text", "sType": "numeric"}],//Manager ID
423
                "iDisplayLength" : 10,
425
                "iDisplayLength" : 10,
424
                "sDom" : 'T<"clear">lfrtip',
426
                "sDom" : 'T<"clear">lfrtip',
425
                "oTableTools" : {
427
                "oTableTools" : {
426
                    "sSwfPath" : "swf/copy_cvs_xls_pdf.swf"
428
                    "sSwfPath" : "swf/copy_cvs_xls_pdf.swf"
Line 441... Line 443...
441
			$('#infopane').html(response);
443
			$('#infopane').html(response);
442
			var agentTable = $('#agents').dataTable({
444
			var agentTable = $('#agents').dataTable({
443
                "aaSorting" : [ [ 1, 'asc' ] ],
445
                "aaSorting" : [ [ 1, 'asc' ] ],
444
                "bAutoWidth": false,
446
                "bAutoWidth": false,
445
                "aoColumns" : [{ "sWidth": "12%", "sSortDataType": "dom-text", "sType": "numeric" },//AgentID
447
                "aoColumns" : [{ "sWidth": "12%", "sSortDataType": "dom-text", "sType": "numeric" },//AgentID
446
                               { "sWidth": "35%" },//Agent Name
448
                               { "sWidth": "25%" },//Agent Name
447
                               { "sWidth": "40%" },//Email ID
449
                               { "sWidth": "30%" },//Email ID
-
 
450
                               { "sWidth": "20%" },//Role
448
                               { "sWidth": "13%", "sSortDataType": "dom-text", "sType": "numeric"}],//Manager ID
451
                               { "sWidth": "13%", "sSortDataType": "dom-text", "sType": "numeric"}],//Manager ID
449
                "iDisplayLength" : 10,
452
                "iDisplayLength" : 10,
450
                "sDom" : 'T<"clear">lfrtip',
453
                "sDom" : 'T<"clear">lfrtip',
451
                "oTableTools" : {
454
                "oTableTools" : {
452
                    "sSwfPath" : "swf/copy_cvs_xls_pdf.swf"
455
                    "sSwfPath" : "swf/copy_cvs_xls_pdf.swf"
Line 915... Line 918...
915
 
918
 
916
function deactivateAgent(emailId, id) {
919
function deactivateAgent(emailId, id) {
917
	$.ajax({
920
	$.ajax({
918
		type : "POST",
921
		type : "POST",
919
		url : "/crm/agent!deActivateAgent?emailId=" + emailId+ "&id=" + id,
922
		url : "/crm/agent!deActivateAgent?emailId=" + emailId+ "&id=" + id,
920
		success : function(response) {   
923
		success : function(response) { 
921
			alert("Agent : " + "deactivated successfully");
924
			alert("Agent deactivated successfully");
922
			$.colorbox.close();
925
			$.colorbox.close();
923
			$('#infopane').html(response);
926
			$('#infopane').html(response);
924
			
-
 
925
			var agentTable = $('#agents').dataTable({
927
			var agentTable = $('#agents').dataTable({
926
                "aaSorting" : [ [ 1, 'asc' ] ],
928
                "aaSorting" : [ [ 1, 'asc' ] ],
927
                "bAutoWidth": false,
929
                "bAutoWidth": false,
928
                "aoColumns" : [{ "sWidth": "12%", "sSortDataType": "dom-text", "sType": "numeric" },//AgentID
930
                "aoColumns" : [{ "sWidth": "12%", "sSortDataType": "dom-text", "sType": "numeric" },//AgentID
929
                               { "sWidth": "35%" },//Agent Name
931
                               { "sWidth": "25%" },//Agent Name
930
                               { "sWidth": "40%" },//Email ID
932
                               { "sWidth": "30%" },//Email ID
-
 
933
                               { "sWidth": "20%" },//Role
931
                               { "sWidth": "13%", "sSortDataType": "dom-text", "sType": "numeric"}],//Manager ID
934
                               { "sWidth": "13%", "sSortDataType": "dom-text", "sType": "numeric"}],//Manager ID
932
                "iDisplayLength" : 10,
935
                "iDisplayLength" : 10,
933
                "sDom" : 'T<"clear">lfrtip',
936
                "sDom" : 'T<"clear">lfrtip',
934
                "oTableTools" : {
937
                "oTableTools" : {
935
                    "sSwfPath" : "swf/copy_cvs_xls_pdf.swf"
938
                    "sSwfPath" : "swf/copy_cvs_xls_pdf.swf"