Skip to content

Commit

Permalink
switched to snippet view swagger-api#491
Browse files Browse the repository at this point in the history
  • Loading branch information
fehguy authored and Alexgalinier committed Nov 13, 2014
1 parent 3ceacb0 commit d086613
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/swagger-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -2622,7 +2622,7 @@ helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
var template;
template = this.template();
$(this.el).html(template(this.model));
this.switchToDescription();
this.switchToSnippet();
this.isParam = this.model.isParam;
if (this.isParam) {
$('.notice', $(this.el)).text('Click to set as parameter value');
Expand Down
4 changes: 4 additions & 0 deletions dist/swagger-ui.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main/coffeescript/view/SignatureView.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class SignatureView extends Backbone.View
template = @template()
$(@el).html(template(@model))

@switchToDescription()
@switchToSnippet()

@isParam = @model.isParam

Expand Down

0 comments on commit d086613

Please sign in to comment.