From 1578e52e599891b857e8f20f918cb917ace27fcd Mon Sep 17 00:00:00 2001 From: ksamykandil Date: Thu, 4 Sep 2014 02:44:52 +0300 Subject: [PATCH 1/2] Adding Delete Property for project --- .../resources/static/js/views/tree-view.js | 20 +++++++++++++++++++ src/main/webapp/WEB-INF/jsp/home.jsp | 19 +++++++++++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/src/main/resources/static/js/views/tree-view.js b/src/main/resources/static/js/views/tree-view.js index b7fa42d..936cd21 100644 --- a/src/main/resources/static/js/views/tree-view.js +++ b/src/main/resources/static/js/views/tree-view.js @@ -86,6 +86,26 @@ define(function(require) { } }); }); + + $("#deleteProjectBtn").bind("click", function() { + +// $("#deleteProjectModal").modal("hide"); + location.reload(); + alert(node); + +// alert(node); +// alert(node.data.id); +// +// $.ajax({ +// url : APP.config.baseUrl + '/nodes/' + APP.appView.getCurrentProjectId(), +// type : 'delete', +// dataType : 'json', +// contentType : "application/json", +// success : function(data) { +//// node.remove(); +// } +// }); + }); $('.col-1-toggle-btn').toggle(function() { $('.rf-col-1').hide(); diff --git a/src/main/webapp/WEB-INF/jsp/home.jsp b/src/main/webapp/WEB-INF/jsp/home.jsp index eae162f..8a79854 100644 --- a/src/main/webapp/WEB-INF/jsp/home.jsp +++ b/src/main/webapp/WEB-INF/jsp/home.jsp @@ -153,7 +153,7 @@
  • Sort
  • Filter
  • -
  • Delete
  • +
  • Delete Project
  • Delete Request
  • @@ -404,6 +404,23 @@ + +