Skip to content

Commit

Permalink
Added a Save Layout button on the Layouts pane
Browse files Browse the repository at this point in the history
  • Loading branch information
lohani2280 committed Jan 10, 2019
1 parent f91a4c0 commit 759e17c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 0 additions & 3 deletions static/js/graphs_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,6 @@ var graphPage = {
});

$('#saveLayoutBtn').click(function () {

cytoscapeGraph.showGraphInformation(graphPage.cyGraph);

graphPage.saveLayout($('#saveLayoutNameInput').val(), '#saveLayoutModal');
});

Expand Down
6 changes: 6 additions & 0 deletions templates/graph/default_sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
Change Layout
</a>
</li>
<li>
<a id="saveLayoutEditorBtn" class="btn sidebar-nav-pills" href="#" data-target="#defaultSideBar">
Save Layout
</a>
</li>

{% if uid %}
<li>
<a id="layoutEditorBtn" class="btn sidebar-nav-pills" href="#editor" data-target="#layoutEditorSideBar">
Expand Down
2 changes: 1 addition & 1 deletion templates/graph/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ <h4 class="modal-title" id="myModalLabel">Save Layout</h4>
<br>
<div class="form-group">
<button name="saveLayoutBtn" id="saveLayoutBtn"
class="btn btn-success sidebar-nav-pills" data-target="#layoutEditorSideBar">Save
class="btn btn-success sidebar-nav-pills" data-target="#defaultSideBar">Save
</button>
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
</div>
Expand Down

0 comments on commit 759e17c

Please sign in to comment.