| Line 1... |
Line 1... |
| 1 |
$(document).on('click', 'a.category-level', function(){
|
1 |
$(document).on('click', 'a.category-level', function(){
|
| 2 |
$(this).closest('tbody').find('td').removeClass('highlight');
|
2 |
$(this).closest('tbody').find('td').removeClass('highlight');
|
| 3 |
category = $(this).data("category");
|
3 |
let category = $(this).data("category");
|
| 4 |
level = $(this).data("level");
|
4 |
let level = $(this).data("level");
|
| 5 |
doGetAjaxRequestHandler(context + "/admin/resources?ticketCategoryId="+category+"&escalationType="+level, function(response) {
|
5 |
doGetAjaxRequestHandler(context + "/admin/resources?ticketCategoryId=" + category + "&escalationType=" + level, function (response) {
|
| 6 |
response = JSON.parse(response);
|
6 |
response = JSON.parse(response);
|
| 7 |
$("#access-resource").find(":input").each(function(index, element){
|
7 |
$("#access-resource").find(":input").each(function (index, element) {
|
| 8 |
console.log($(element).data("menuid"));
|
8 |
console.log($(element).data("menuid"));
|
| 9 |
element.checked=response.indexOf($(element).data("menuid")) > -1;
|
9 |
element.checked = response.indexOf($(element).data("menuid")) > -1;
|
| 10 |
});
|
10 |
});
|
| 11 |
});
|
11 |
});
|
| 12 |
$("#access-resource th").html("Resources for " + $(this).html());
|
12 |
$("#access-resource th").html("Resources for " + $(this).html());
|
| 13 |
$(this).closest('td').addClass('highlight');
|
13 |
$(this).closest('td').addClass('highlight');
|
| 14 |
});
|
14 |
});
|