From b627f01830c95741b276afb9d6415b87e9cfd9c8 Mon Sep 17 00:00:00 2001 From: Ivan Pozdnyakov Date: Wed, 14 Oct 2015 18:27:25 -0400 Subject: [PATCH] Integerating Tham's service p2 --- VQI_PathwayEditor.js | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) 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) {