disabled edit properties button

This commit is contained in:
Laurent Lepinay
2015-05-18 14:24:41 +02:00
parent 78c7dda0a9
commit 512e78c6aa
3 changed files with 3 additions and 3 deletions

2
dist/swagger-ui.js vendored
View File

@@ -21567,7 +21567,7 @@ SwaggerUi.Views.ParameterView = Backbone.View.extend({
this.model.jsonEditor =
/* global JSONEditor */
new JSONEditor($('.editor_holder', $self)[0],
{schema: this.model.schema, startval : this.model.default, ajax:true });
{schema: this.model.schema, startval : this.model.default, ajax:true, disable_properties:true });
// This is so that the signature can send back the sample to the json editor
// TODO: SignatureView should expose an event "onSampleClicked" instead
signatureModel.jsonEditor = this.model.jsonEditor;

File diff suppressed because one or more lines are too long

View File

@@ -60,7 +60,7 @@ SwaggerUi.Views.ParameterView = Backbone.View.extend({
this.model.jsonEditor =
/* global JSONEditor */
new JSONEditor($('.editor_holder', $self)[0],
{schema: this.model.schema, startval : this.model.default, ajax:true });
{schema: this.model.schema, startval : this.model.default, ajax:true, disable_properties:true });
// This is so that the signature can send back the sample to the json editor
// TODO: SignatureView should expose an event "onSampleClicked" instead
signatureModel.jsonEditor = this.model.jsonEditor;