minor fix

This commit is contained in:
fbsanchez 2020-07-06 14:01:51 +02:00
parent 2442336f45
commit 53a2215a41
1 changed files with 31 additions and 33 deletions

View File

@ -768,13 +768,8 @@ var TreeController = {
} }
// Data pop-up // Data pop-up
if ( if (typeof element.id != "undefined" && !isNaN(element.id)) {
element.metaID != "undefined" && if (isNaN(element.metaID)) {
!isNaN(element.metaID) &&
element.metaID <= 0 &&
typeof element.id != "undefined" &&
!isNaN(element.id)
) {
var $dataImage = $( var $dataImage = $(
'<img src="' + '<img src="' +
(controller.baseURL.length > 0 (controller.baseURL.length > 0
@ -787,7 +782,9 @@ var TreeController = {
try { try {
var serverName = var serverName =
element.serverName.length > 0 ? element.serverName : ""; element.serverName.length > 0
? element.serverName
: "";
if ($("#module_details_window").length > 0) if ($("#module_details_window").length > 0)
show_module_detail_dialog( show_module_detail_dialog(
element.id, element.id,
@ -805,6 +802,7 @@ var TreeController = {
$content.append($dataImage); $content.append($dataImage);
} }
} }
}
// Alerts // Alerts
if ( if (