diff --git a/apimanager/base/static/css/obpjsoneditor.css b/apimanager/base/static/css/obpjsoneditor.css index b5ac859..13f707a 100644 --- a/apimanager/base/static/css/obpjsoneditor.css +++ b/apimanager/base/static/css/obpjsoneditor.css @@ -15,5 +15,6 @@ } .jsoneditor_div{ + display: none; height: 400px; } \ No newline at end of file diff --git a/apimanager/methodrouting/static/methodrouting/js/methodrouting.js b/apimanager/methodrouting/static/methodrouting/js/methodrouting.js index 912fc07..b1bc56d 100644 --- a/apimanager/methodrouting/static/methodrouting/js/methodrouting.js +++ b/apimanager/methodrouting/static/methodrouting/js/methodrouting.js @@ -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"); diff --git a/apimanager/methodrouting/templates/methodrouting/index.html b/apimanager/methodrouting/templates/methodrouting/index.html index 644124f..3652a53 100644 --- a/apimanager/methodrouting/templates/methodrouting/index.html +++ b/apimanager/methodrouting/templates/methodrouting/index.html @@ -131,7 +131,7 @@ {% endif %}
- +