mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 11:26:13 +00:00
warn user about future deprication of "user-config-readonly"
This commit is contained in:
parent
ff62a80bcd
commit
8a16b40db8
@ -158,6 +158,21 @@ include("head.inc");
|
||||
$("#search_selected").click(function(){
|
||||
$("#search").keyup();
|
||||
});
|
||||
|
||||
// Warn user about future removal.
|
||||
$("input[value='user-config-readonly']").change(function(){
|
||||
if ($(this).is(':checked')) {
|
||||
BootstrapDialog.show({
|
||||
type:BootstrapDialog.TYPE_DANGER,
|
||||
title: "<?= gettext("Privileges");?>",
|
||||
message: "<?=gettext("Please be aware that this option does not cover all areas of the system and will be removed in a future release.");?>",
|
||||
buttons: [{ label: "<?= gettext("Ok");?>", action: function(dialogRef) {
|
||||
dialogRef.close();
|
||||
}
|
||||
}]
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user