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 ()
function CreateJacksEditor()
{
var isViewer = gotscript && !portal_converted;
var isViewer = window.ISPOWDER || (gotscript && !portal_converted);
if (editor) {
$('#editmodal_div').empty();
}
......@@ -1784,7 +1784,12 @@ $(function ()
fromrepo, gotscript, gotrspec, portal_converted);
if (! (gotscript || gotrspec)) {
if (window.ISPOWDER) {
$('#edit_topo_modal_button').addClass('hidden');
}
else {
$('#edit_topo_modal_button').html('Create Topology');
}
$('#show_source_modal_button').html('Edit Code');
}
else {
......@@ -1806,7 +1811,8 @@ $(function ()
// Hide the git-repo button.
$('#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');
}
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