Merge branch 'ent-1850-no-hay-opcion-command-line-snapshot-en-meta-2' into 'develop'

[Tree View] Fixed snapshot preview in metaconsole

See merge request artica/pandorafms!1339
This commit is contained in:
vgilc 2018-03-02 11:29:53 +01:00
commit d5dc8c04e7
1 changed files with 13 additions and 17 deletions

View File

@ -409,26 +409,22 @@ var TreeController = {
.addClass('module-graph')
.click(function (e) {
e.preventDefault();
if(element.statusImageHTML.indexOf('data:image')!=-1){
try {
winopeng('operation/agentes/snapshot_view.php?id='+element.id+'&refr=&label='+element.name);
if(element.statusImageHTML.indexOf('data:image')!=-1){
try {
winopeng_var(element.datos,'',700,480);
}
catch (error) {
// console.log(error);
}
}
catch (error) {
// console.log(error);
}
}
else{
try {
else{
try {
winopeng(element.moduleGraph.url, element.moduleGraph.handle);
}
catch (error) {
// console.log(error);
}
}
catch (error) {
// console.log(error);
}
}
});
$content.append($graphImage);