-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit-employee.js
More file actions
34 lines (30 loc) · 1001 Bytes
/
edit-employee.js
File metadata and controls
34 lines (30 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$(document).ready(function (e) {
//JGC: ReadOnly buttons if record is deactivated
var status = $(".record-status").html();
$('#AccreditationInformation .entity-grid.subgrid').on('loaded', function() {
if (status == "Inactive")
{
$("#AccreditationInformation .action.add-margin-right").addClass("disabled")
$("#AccreditationInformation .btn-xs").addClass("disabled");
}
});
$('#TrainingsAttended .entity-grid.subgrid').on('loaded', function() {
if (status == "Inactive")
{
$("#TrainingsAttended .action.add-margin-right").addClass("disabled")
$("#TrainingsAttended .btn-xs").addClass("disabled");
}
});
//Added by Ernest Sarmiento
if( $('#gsc_positionid_name').val() != "Sales Executive"){
$('.checkbox-cell').addClass("hidden");
} else {
$('.checkbox-cell').removeClass("hidden");
}
setTimeout(disableTab, 3000);
function disableTab()
{
$('.disabled').attr("tabindex", "-1");
$('fieldset.permanent-disabled .btn').attr("tabindex", "-1");
}
});