mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-01 11:04:55 +02:00
Fix
This commit is contained in:
parent
f09e864569
commit
a9075f0068
@ -5034,15 +5034,13 @@ class AgentWizard extends HTML
|
|||||||
var imageInfoModules = $("#image-info-modules-" + blockNumber);
|
var imageInfoModules = $("#image-info-modules-" + blockNumber);
|
||||||
var totalCount = 0;
|
var totalCount = 0;
|
||||||
var markedCount = 0;
|
var markedCount = 0;
|
||||||
var hidden_input = document.getElementById("hidden-module-active-"+switchName[2]+"_0-0");
|
|
||||||
var id_input = hidden_input.id.split("_");
|
|
||||||
if (type == 'block') {
|
if (type == 'block') {
|
||||||
selectedBlock
|
selectedBlock
|
||||||
.parent()
|
.parent()
|
||||||
.removeClass("alpha50");
|
.removeClass("alpha50");
|
||||||
if (selectedBlock.prop("checked")) {
|
if (selectedBlock.prop("checked")) {
|
||||||
// Set to active the values of fields.
|
// Set to active the values of fields.
|
||||||
$("[id*='"+id_input[0]+"']")
|
$("[id*=hidden-module-active-"+blockNumber+"]")
|
||||||
.each(function(){
|
.each(function(){
|
||||||
$(this).val('1');
|
$(this).val('1');
|
||||||
});
|
});
|
||||||
@ -5054,7 +5052,7 @@ class AgentWizard extends HTML
|
|||||||
imageInfoModules.removeClass('hidden');
|
imageInfoModules.removeClass('hidden');
|
||||||
} else {
|
} else {
|
||||||
// Set to inactive the values of fields.
|
// Set to inactive the values of fields.
|
||||||
$("[id*='"+id_input[0]+"']")
|
$("[id*=hidden-module-active-"+blockNumber+"]")
|
||||||
.each(function(){
|
.each(function(){
|
||||||
$(this).val('0');
|
$(this).val('0');
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user