mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
minor fix
This commit is contained in:
parent
2442336f45
commit
53a2215a41
@ -768,41 +768,39 @@ 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) &&
|
var $dataImage = $(
|
||||||
element.metaID <= 0 &&
|
'<img src="' +
|
||||||
typeof element.id != "undefined" &&
|
(controller.baseURL.length > 0
|
||||||
!isNaN(element.id)
|
? controller.baseURL
|
||||||
) {
|
: "") +
|
||||||
var $dataImage = $(
|
'images/binary.png" /> '
|
||||||
'<img src="' +
|
);
|
||||||
(controller.baseURL.length > 0
|
$dataImage.addClass("module-data").click(function(e) {
|
||||||
? controller.baseURL
|
e.stopPropagation();
|
||||||
: "") +
|
|
||||||
'images/binary.png" /> '
|
|
||||||
);
|
|
||||||
$dataImage.addClass("module-data").click(function(e) {
|
|
||||||
e.stopPropagation();
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var serverName =
|
var serverName =
|
||||||
element.serverName.length > 0 ? element.serverName : "";
|
element.serverName.length > 0
|
||||||
if ($("#module_details_window").length > 0)
|
? element.serverName
|
||||||
show_module_detail_dialog(
|
: "";
|
||||||
element.id,
|
if ($("#module_details_window").length > 0)
|
||||||
"",
|
show_module_detail_dialog(
|
||||||
serverName,
|
element.id,
|
||||||
0,
|
"",
|
||||||
86400,
|
serverName,
|
||||||
element.name.replace(/ /g, " ")
|
0,
|
||||||
);
|
86400,
|
||||||
} catch (error) {
|
element.name.replace(/ /g, " ")
|
||||||
// console.log(error);
|
);
|
||||||
}
|
} catch (error) {
|
||||||
});
|
// console.log(error);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$content.append($dataImage);
|
$content.append($dataImage);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user