mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
[Tree View] Fixed snapshot preview in metaconsole
This commit is contained in:
parent
2b2c99cc42
commit
28755d90a0
@ -409,26 +409,22 @@ var TreeController = {
|
|||||||
.addClass('module-graph')
|
.addClass('module-graph')
|
||||||
.click(function (e) {
|
.click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if(element.statusImageHTML.indexOf('data:image')!=-1){
|
if(element.statusImageHTML.indexOf('data:image')!=-1){
|
||||||
try {
|
try {
|
||||||
winopeng('operation/agentes/snapshot_view.php?id='+element.id+'&refr=&label='+element.name);
|
winopeng_var(element.datos,'',700,480);
|
||||||
|
}
|
||||||
|
catch (error) {
|
||||||
|
// console.log(error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (error) {
|
else{
|
||||||
// console.log(error);
|
try {
|
||||||
}
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
|
|
||||||
try {
|
|
||||||
|
|
||||||
winopeng(element.moduleGraph.url, element.moduleGraph.handle);
|
winopeng(element.moduleGraph.url, element.moduleGraph.handle);
|
||||||
|
}
|
||||||
|
catch (error) {
|
||||||
|
// console.log(error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (error) {
|
|
||||||
// console.log(error);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$content.append($graphImage);
|
$content.append($graphImage);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user