mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Merge branch 'ent-7521-Dynamic-Threshold-max-desactivado-por-error' into 'develop'
Fixed issue with undesired deactivate dynamic threshold max field Closes pandora_enterprise#7521 See merge request artica/pandorafms!4130
This commit is contained in:
commit
a6f41ede3d
@ -1574,10 +1574,6 @@ $(document).ready (function () {
|
||||
});
|
||||
|
||||
disabled_two_tailed(disabledBecauseInPolicy);
|
||||
$('#checkbox-dynamic_two_tailed').change (function() {
|
||||
disabled_two_tailed(disabledBecauseInPolicy);
|
||||
});
|
||||
|
||||
|
||||
//Dynamic_options_advance;
|
||||
$('.hide_dinamic').hide();
|
||||
@ -1646,15 +1642,10 @@ function disabled_status (disabledBecauseInPolicy) {
|
||||
}
|
||||
|
||||
function disabled_two_tailed (disabledBecauseInPolicy) {
|
||||
if($('#checkbox-dynamic_two_tailed').prop('checked')){
|
||||
$('#text-dynamic_max').prop('readonly', false);
|
||||
$('#text-dynamic_max').removeClass('readonly');
|
||||
}
|
||||
else{
|
||||
if (disabledBecauseInPolicy == 0){
|
||||
$('#text-dynamic_max').prop('readonly', true);
|
||||
$('#text-dynamic_max').addClass('readonly');
|
||||
}
|
||||
if (disabledBecauseInPolicy == 1){
|
||||
$('#text-dynamic_max')
|
||||
.prop('readonly', true)
|
||||
.addClass('readonly');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user