Fix agent modules selector on meta for dashboards
This commit is contained in:
parent
bacd0a616f
commit
b67683adff
|
@ -232,11 +232,15 @@ function fmModuleChange(uniqId, isMeta) {
|
||||||
selection: showCommonModules
|
selection: showCommonModules
|
||||||
},
|
},
|
||||||
function(data) {
|
function(data) {
|
||||||
|
debugger;
|
||||||
$("#filtered-module-modules-" + uniqId).html("");
|
$("#filtered-module-modules-" + uniqId).html("");
|
||||||
if (data) {
|
if (data) {
|
||||||
jQuery.each(data, function(id, value) {
|
jQuery.each(data, function(id, value) {
|
||||||
var option = $("<option></option>");
|
var option = $("<option></option>");
|
||||||
if (isMeta === 1) {
|
if (isMeta === 1) {
|
||||||
|
if (value["id_node"] == null || value["id_node"] == "") {
|
||||||
|
option.attr("value", id).html(value);
|
||||||
|
}
|
||||||
option
|
option
|
||||||
.attr(
|
.attr(
|
||||||
"value",
|
"value",
|
||||||
|
|
Loading…
Reference in New Issue