Subversion Repositories SmartDukaan

Rev

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

Rev 5168 Rev 5203
Line 161... Line 161...
161
                        { "sWidth": "8%" }],//priority
161
                        { "sWidth": "8%" }],//priority
162
        "fnDrawCallback": function() {truncateText(85);},
162
        "fnDrawCallback": function() {truncateText(85);},
163
        "iDisplayLength" : 10,
163
        "iDisplayLength" : 10,
164
        "sDom" : 'T<"clear">lfrtip',
164
        "sDom" : 'T<"clear">lfrtip',
165
        "oTableTools" : {
165
        "oTableTools" : {
166
            "sSwfPath" : "swf/copy_cvs_xls_pdf.swf"
166
            "sSwfPath" : "swf/copy_cvs_xls_pdf.swf",
-
 
167
            "sExtends": "csv",
-
 
168
            "sFieldSeperator": "`"
167
        },
169
        },
168
        "aLengthMenu" : [ [ 5, 10, 20, -1 ], [ 5, 10, 20, "All" ] ]
170
        "aLengthMenu" : [ [ 5, 10, 20, -1 ], [ 5, 10, 20, "All" ] ]
169
    });
171
    });
170
 
172
 
171
    return ticketsTable;
173
    return ticketsTable;
Line 192... Line 194...
192
 
194
 
193
function createActivityDataTable(domId) {
195
function createActivityDataTable(domId) {
194
    var activityTable = $('#' + domId).dataTable({
196
    var activityTable = $('#' + domId).dataTable({
195
        "aaSorting" : [ [ 4, 'desc' ] ],
197
        "aaSorting" : [ [ 4, 'desc' ] ],
196
     "bAutoWidth": false,
198
     "bAutoWidth": false,
197
      "aoColumns" : [{ "sWidth": "10%" },//id
199
      "aoColumns" : [{ "sWidth": "7%" },//id
198
                     { "sWidth": "22%" },//activity type
200
                     { "sWidth": "18%" },//activity type
199
                     { "sWidth": "15%" },//description
201
                     { "sWidth": "11%" },//description
200
                     { "sWidth": "12%" },//timestamp
202
                     { "sWidth": "11%" },//timestamp
201
                     { "sWidth": "12%" },//creator
203
                     { "sWidth": "12%" },//creator
202
                     { "sWidth": "12%" },//customer id
204
                     { "sWidth": "6%" },//customer id
203
                     { "sWidth": "9%" },//ticket id
205
                     { "sWidth": "7%" },//ticket id
-
 
206
                     { "sWidth": "7%" },//ticket status
204
                     { "sWidth": "8%" }],//category
207
                     { "sWidth": "12%" },//category
-
 
208
                     { "sWidth": "9%" }],//contact number
205
        "iDisplayLength" : 10,
209
        "iDisplayLength" : 10,
206
        "sDom" : 'T<"clear">lfrtip',
210
        "sDom" : 'T<"clear">lfrtip',
207
        "fnDrawCallback": function() {truncateText(95);},
211
        "fnDrawCallback": function() {truncateText(95);},
208
        "oTableTools" : {
212
        "oTableTools" : {
209
            "sSwfPath" : "swf/copy_cvs_xls_pdf.swf"
213
            "sSwfPath" : "swf/copy_cvs_xls_pdf.swf",
-
 
214
            "sExtends": "csv",
-
 
215
            "sFieldSeperator": "`"
210
        },
216
        },
211
        "aLengthMenu" : [ [ 5, 10, 20, -1 ], [ 5, 10, 20, "All" ] ]
217
        "aLengthMenu" : [ [ 5, 10, 20, -1 ], [ 5, 10, 20, "All" ] ]
212
    });
218
    });
213
 
219
 
214
    return activityTable;
220
    return activityTable;
Line 403... Line 409...
403
        }
409
        }
404
    });
410
    });
405
}
411
}
406
 
412
 
407
function processActivityTypeChange(activityType) {
413
function processActivityTypeChange(activityType) {
-
 
414
	if(activityType != "RECEIVED_CALL_FROM_CUSTOMER") {
-
 
415
		$('select#common-activity-desc').hide();
-
 
416
	} else {
-
 
417
		$('select#common-activity-desc').show();
-
 
418
	}
408
    if (activityType == "SEND_EMAIL_TO_CUSTOMER") {
419
    if (activityType == "SEND_EMAIL_TO_CUSTOMER") {
409
        $.colorbox({
420
        $.colorbox({
410
            inline : true,
421
            inline : true,
411
            width : "775px",
422
            width : "775px",
412
            height : "445px",
423
            height : "445px",