Commit e791b0f6 authored by Leigh Stoller's avatar Leigh Stoller

Use just a close button in the topology view when read-only.

This closes issues #281.
parent 9eca8564
...@@ -1676,6 +1676,14 @@ $(function () ...@@ -1676,6 +1676,14 @@ $(function ()
} }
editor = new JacksEditor($('#editmodal_div'), editor = new JacksEditor($('#editmodal_div'),
isViewer, false, false, false, !multisite); isViewer, false, false, false, !multisite);
if (isViewer) {
$('#edit_container .edit_buttons.readwrite').addClass("hidden");
$('#edit_container .edit_buttons.readonly').removeClass("hidden");
else {
$('#edit_container .edit_buttons.readwrite').removeClass("hidden");
$('#edit_container .edit_buttons.readonly').addClass("hidden");
} }
function MarkPortalConverted(converted) function MarkPortalConverted(converted)
...@@ -15,10 +15,13 @@ ...@@ -15,10 +15,13 @@
id='edit_container'> id='edit_container'>
<div class='panel-body'> <div class='panel-body'>
<div id='edit_nopicker' class='jacks'></div> <div id='edit_nopicker' class='jacks'></div>
<div class='edit_buttons'> <div class='edit_buttons readwrite'>
<button id='edit-save' class='btn btn-primary'>Accept</button> <button id='edit-save' class='btn btn-primary'>Accept</button>
<button id='edit-cancel' class='btn btn-default'>Cancel</button> <button id='edit-cancel' class='btn btn-default'>Cancel</button>
</div> </div>
<div class='edit_buttons readonly'">
<button id='edit-dismiss' class='btn btn-default'>Close</button>
</div> </div>
</div> </div>
</div> </div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment