Merge pull request #358 from hongwei1/develop

refactor/tweak the method MethodRoutings page
This commit is contained in:
Simon Redfern 2024-06-18 10:57:01 +02:00 committed by GitHub
commit a62da42cce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View File

@ -15,5 +15,6 @@
}
.jsoneditor_div{
display: none;
height: 400px;
}

View File

@ -41,9 +41,9 @@ $(document).ready(function($) {
let json_editor_number = jsoneditor_id.replace("jsoneditor","");
//if the user do not click the `parameters` box, then there is no json_editors here,so we use the parameters directly.
if (typeof json_editors[json_editor_number] === 'undefined') {
let parameters_Json_editor = parameters;
parameters_Json_editor = parameters;
} else {
let parameters_Json_editor = JSON.stringify(json_editors[json_editor_number].get());
parameters_Json_editor = JSON.stringify(json_editors[json_editor_number].get());
}
$('.runner button.forSave').attr("disabled","disabled");
$('.runner button.forDelete').attr("disabled","disabled");

View File

@ -131,7 +131,7 @@
{% endif %}
</div>
<div class="col-sm-12 col-sm-12">
<div id="jsoneditor{{forloop.counter0}}" style="display: none" class ="jsoneditor_div"></div>
<div id="jsoneditor{{forloop.counter0}}" class ="jsoneditor_div"></div>
</div>
</div>
</div>