disabled edit properties button
This commit is contained in:
2
dist/swagger-ui.js
vendored
2
dist/swagger-ui.js
vendored
@@ -21567,7 +21567,7 @@ SwaggerUi.Views.ParameterView = Backbone.View.extend({
|
|||||||
this.model.jsonEditor =
|
this.model.jsonEditor =
|
||||||
/* global JSONEditor */
|
/* global JSONEditor */
|
||||||
new JSONEditor($('.editor_holder', $self)[0],
|
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
|
// This is so that the signature can send back the sample to the json editor
|
||||||
// TODO: SignatureView should expose an event "onSampleClicked" instead
|
// TODO: SignatureView should expose an event "onSampleClicked" instead
|
||||||
signatureModel.jsonEditor = this.model.jsonEditor;
|
signatureModel.jsonEditor = this.model.jsonEditor;
|
||||||
|
|||||||
2
dist/swagger-ui.min.js
vendored
2
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -60,7 +60,7 @@ SwaggerUi.Views.ParameterView = Backbone.View.extend({
|
|||||||
this.model.jsonEditor =
|
this.model.jsonEditor =
|
||||||
/* global JSONEditor */
|
/* global JSONEditor */
|
||||||
new JSONEditor($('.editor_holder', $self)[0],
|
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
|
// This is so that the signature can send back the sample to the json editor
|
||||||
// TODO: SignatureView should expose an event "onSampleClicked" instead
|
// TODO: SignatureView should expose an event "onSampleClicked" instead
|
||||||
signatureModel.jsonEditor = this.model.jsonEditor;
|
signatureModel.jsonEditor = this.model.jsonEditor;
|
||||||
|
|||||||
Reference in New Issue
Block a user