mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed javascript problems when configure ACL permmisions
(cherry picked from commit 67e366cc9d8bfefa14e34e903c3cef6941fcda24)
This commit is contained in:
parent
b41c9aace2
commit
c12f0dba1c
@ -1009,15 +1009,25 @@ function addTinyMCE(elementID) {
|
||||
tinyMCE.EditorManager.execCommand('mceAddControl', true, elementID);
|
||||
}
|
||||
|
||||
function autoclick_profile_users(firts_level, second_level) {
|
||||
if (typeof firts_level !== "undefined") {
|
||||
var is_checked_firts = $('#checkbox-' + firts_level).is(':checked');
|
||||
if (!is_checked_firts) {
|
||||
$('#checkbox-' + firts_level).prop('checked', true);
|
||||
}
|
||||
if (second_level !== false) {
|
||||
if (!$('#checkbox-' + second_level).is(":checked")) {
|
||||
$('#checkbox-' + second_level).prop('checked', true);
|
||||
});
|
||||
}
|
||||
|
||||
function autoclick_profile_users(actual_level, firts_level, second_level) {
|
||||
if ($('#checkbox-' + actual_level).is(":checked")) {
|
||||
if (typeof firts_level !== "undefined") {
|
||||
var is_checked_firts = $('#checkbox-' + firts_level).is(':checked');
|
||||
console.log("FIRTS");
|
||||
console.log(is_checked_firts);
|
||||
if (!is_checked_firts) {
|
||||
$('#checkbox-' + firts_level).prop('checked', true);
|
||||
}
|
||||
if (second_level !== false) {
|
||||
console.log("SECOND");
|
||||
console.log($('#checkbox-' + second_level).is(":checked"));
|
||||
if (!$('#checkbox-' + second_level).is(":checked")) {
|
||||
$('#checkbox-' + second_level).prop('checked', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user