Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Integerating Tham's service p2
  • Loading branch information
Ivan Pozdnyakov authored and Ivan Pozdnyakov committed Oct 14, 2015
1 parent 9b3ec62 commit b627f01
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions VQI_PathwayEditor.js
Expand Up @@ -47,6 +47,8 @@ var VQI_PathwayEditor = function (parent) {
strVar += " <input id=\"" + parent + "-undo\" value=\"Undo\" type=\"button\"><\/input>";
strVar += " <input id=\"" + parent + "-redo\" value=\"Redo\" type=\"button\"><\/input>";
strVar += " <input id=\"" + parent + "-findObject\" value=\"Find Object\" type=\"button\"><\/input>";
strVar += " <div id=\"" + parent + "-dialog-table\" title=\"Object Table\">";
strVar += " <\/div>";
strVar += " <div id=\"" + parent + "-dialog-bundle\" title=\"Find path\">";
strVar += " <form>";
strVar += " <fieldset>";
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit b627f01

Please sign in to comment.