diff --git a/VQI_PathwayEditor.js b/VQI_PathwayEditor.js index be8a47e..45b0441 100755 --- a/VQI_PathwayEditor.js +++ b/VQI_PathwayEditor.js @@ -47,6 +47,8 @@ var VQI_PathwayEditor = function (parent) { strVar += " <\/input>"; strVar += " <\/input>"; strVar += " <\/input>"; + strVar += "
"; + strVar += " <\/div>"; strVar += "
"; strVar += "
"; strVar += "
"; @@ -897,16 +899,30 @@ var VQI_PathwayEditor = function (parent) { } function findObject(event) { - alert("fasfafa"); console.log(coloredNodes); var val = event.target.value; $.post(services['objectfinder'], { - pattern: coloredNodes + pattern: JSON.stringify(coloredNodes) }, function (data) { + document.getElementById(parent + "-dialog-table").innerHTML = data; + dialogTable.dialog("open") console.log(data); }); } + + dialogTable = $("#" + parent + "-dialog-table").dialog({ + autoOpen: false, + height: 300, + width: 350, + buttons: { + Cancel: function () { + dialogTable.dialog("close"); + } + }, + close: function () { + } + }); dialogNode = $("#" + parent + "-dialog-form-node").dialog({ open: function (event) {