From f91a4c0df6acc11e9bbc699cdfbf48e677fea323 Mon Sep 17 00:00:00 2001 From: JingVT <33851894+JingVT@users.noreply.github.com> Date: Wed, 19 Sep 2018 15:46:17 -0400 Subject: [PATCH 1/2] Correct static path error --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7058d37a..f0636274 100644 --- a/README.md +++ b/README.md @@ -70,9 +70,9 @@ WSGIScriptAlias / /path_to_GraphSpace/graphspace/wsgi.py - Alias /static/ /path_to_GraphSpace/graphs/static/ + Alias /static/ /path_to_GraphSpace/static/ - + Require all granted From 12108557e7d9a6057cc7e218acb60f8ae67fa2b0 Mon Sep 17 00:00:00 2001 From: lohani2280 Date: Thu, 10 Jan 2019 17:59:36 +0530 Subject: [PATCH 2/2] Added a Save Layout button on the Layouts pane Fixes https://github.com/Murali-group/GraphSpace/issues/392 --- static/js/graphs_page.js | 3 --- templates/graph/default_sidebar.html | 6 ++++++ templates/graph/index.html | 5 +++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/static/js/graphs_page.js b/static/js/graphs_page.js index a7f4c57a..fe318430 100644 --- a/static/js/graphs_page.js +++ b/static/js/graphs_page.js @@ -452,9 +452,6 @@ var graphPage = { }); $('#saveLayoutBtn').click(function () { - - cytoscapeGraph.showGraphInformation(graphPage.cyGraph); - graphPage.saveLayout($('#saveLayoutNameInput').val(), '#saveLayoutModal'); }); diff --git a/templates/graph/default_sidebar.html b/templates/graph/default_sidebar.html index 9214c445..30145fb5 100644 --- a/templates/graph/default_sidebar.html +++ b/templates/graph/default_sidebar.html @@ -34,7 +34,13 @@ Change Layout + {% if uid %} +
  • + + Save Layout + +
  • Use Layout
    Editor diff --git a/templates/graph/index.html b/templates/graph/index.html index 830d44f3..7aceed39 100644 --- a/templates/graph/index.html +++ b/templates/graph/index.html @@ -116,7 +116,8 @@