Commit d8d2e1b4 authored by Leigh B Stoller's avatar Leigh B Stoller

Fix issue #445. This closes issue #445.

parent ea920202
...@@ -301,6 +301,10 @@ $(function () ...@@ -301,6 +301,10 @@ $(function ()
$('#edit_topo_modal_button').click(function (event) { $('#edit_topo_modal_button').click(function (event) {
event.preventDefault(); event.preventDefault();
// Do this now instead of on page load, since user might switch
// between geni-lib and rspec, and that changes whether the
// editor is read-only or writable.
CreateJacksEditor();
editor.show($('#profile_rspec_textarea').val(), editor.show($('#profile_rspec_textarea').val(),
function (newrspec) { function (newrspec) {
// Only for a new profile or profile converted // Only for a new profile or profile converted
...@@ -649,7 +653,6 @@ $(function () ...@@ -649,7 +653,6 @@ $(function ()
if (gotrspec) { if (gotrspec) {
ExtractFromRspec(); ExtractFromRspec();
} }
CreateJacksEditor();
UpdateButtons(); UpdateButtons();
// //
......
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