| Line 227... |
Line 227... |
| 227 |
var ticketId = $(this).data('ticketid');
|
227 |
var ticketId = $(this).data('ticketid');
|
| 228 |
var assignee = $(this).data('assignee');
|
228 |
var assignee = $(this).data('assignee');
|
| 229 |
var internal = $(this).data('internal');
|
229 |
var internal = $(this).data('internal');
|
| 230 |
var roleType = $(this).data('role');
|
230 |
var roleType = $(this).data('role');
|
| 231 |
var isCrmUser = $(this).data('crm');
|
231 |
var isCrmUser = $(this).data('crm');
|
| - |
|
232 |
var canAction = $(this).data('canaction');
|
| 232 |
console.log(assignee);
|
233 |
console.log(assignee);
|
| 233 |
loadActivities(ticketId, assignee, internal, roleType, isCrmUser);
|
234 |
loadActivities(ticketId, assignee, internal, roleType, isCrmUser);
|
| - |
|
235 |
// Hide modal footer (message input/submit) if user cannot take action
|
| - |
|
236 |
if (canAction !== undefined && canAction.toString().trim() === 'false') {
|
| - |
|
237 |
$('#myModal .modal-footer').hide();
|
| - |
|
238 |
} else {
|
| - |
|
239 |
$('#myModal .modal-footer').show();
|
| - |
|
240 |
}
|
| 234 |
});
|
241 |
});
|
| 235 |
$(document).on('click', ".my-ticket", function() {
|
242 |
$(document).on('click', ".my-ticket", function() {
|
| 236 |
loadMyTicket("main-content", null, null, null, null, null);
|
243 |
loadMyTicket("main-content", null, null, null, null, null);
|
| 237 |
});
|
244 |
});
|
| 238 |
$(document).on('click', "#close-ticket", function() {
|
245 |
$(document).on('click', "#close-ticket", function() {
|