Skip to content

Commit

Permalink
delete nodes (visual)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Pozdnyakov authored and Ivan Pozdnyakov committed Sep 7, 2015
1 parent c0b9d21 commit 5be864e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 13 additions & 5 deletions code.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@

// Globals
var selectedForQueryNodes = [];
var selectedForEditNodes = [];
var counts = {};
var str_info;


$(function () { // on dom ready

function onChange(event) {
Expand All @@ -12,6 +20,10 @@ $(function () { // on dom ready
visual_pathway(obj);
}

function remove(event) {
selectedForEditNodes.remove();
}

/*
function sendFileToServer(formData, status) {
var uploadURL = "http://localhost/pathway/cy_v1/index.php"; //Upload URL
Expand Down Expand Up @@ -283,11 +295,6 @@ $(function () { // on dom ready

//cy.elements().unselectify();

var selectedForQueryNodes = [];
var selectedForEditNodes = [];
var counts = {};
var str_info;

//$('#information').append("You have selected:" + "<br>");

// custom event handlers
Expand Down Expand Up @@ -352,4 +359,5 @@ $(function () { // on dom ready
}

document.getElementById('file').addEventListener('change', onChange);
document.getElementById('delete').addEventListener('click', remove);
}); // on dom ready
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function dataURLtoBlob(dataURL) {
</script>
<body>
<input id="file" type="file"/>

<input id="delete" value="Delete" type="button"/></input>
<form action="get.php" method="post" id="pathway">
<textarea id="params" name="params" rows="10" cols="10"></textarea>
<input type="submit" id="submit" value="Save and Query">
Expand Down

0 comments on commit 5be864e

Please sign in to comment.