Commit b9f54019 authored by Leigh Stoller's avatar Leigh Stoller

Turn off Jacks editing in the Powder portal, since it does not

understand any of the radio gear or new hardware, and its too easy to
generate bad rspecs.
parent 41ff778f
...@@ -1754,7 +1754,7 @@ $(function () ...@@ -1754,7 +1754,7 @@ $(function ()
function CreateJacksEditor() function CreateJacksEditor()
{ {
var isViewer = gotscript && !portal_converted; var isViewer = window.ISPOWDER || (gotscript && !portal_converted);
if (editor) { if (editor) {
$('#editmodal_div').empty(); $('#editmodal_div').empty();
} }
...@@ -1784,7 +1784,12 @@ $(function () ...@@ -1784,7 +1784,12 @@ $(function ()
fromrepo, gotscript, gotrspec, portal_converted); fromrepo, gotscript, gotrspec, portal_converted);
if (! (gotscript || gotrspec)) { if (! (gotscript || gotrspec)) {
$('#edit_topo_modal_button').html('Create Topology'); if (window.ISPOWDER) {
$('#edit_topo_modal_button').addClass('hidden');
}
else {
$('#edit_topo_modal_button').html('Create Topology');
}
$('#show_source_modal_button').html('Edit Code'); $('#show_source_modal_button').html('Edit Code');
} }
else { else {
...@@ -1806,7 +1811,8 @@ $(function () ...@@ -1806,7 +1811,8 @@ $(function ()
// Hide the git-repo button. // Hide the git-repo button.
$('#git-repo-button-div').addClass("hidden"); $('#git-repo-button-div').addClass("hidden");
} }
if (canedittopo) { $('#edit_topo_modal_button').removeClass('hidden');
if (canedittopo && !window.ISPOWDER) {
$('#edit_topo_modal_button').html('Edit Topology'); $('#edit_topo_modal_button').html('Edit Topology');
} }
else { else {
......
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