This commit is contained in:
Ayush Gupta
2012-11-06 11:03:38 +05:30
parent 8d3a5010b4
commit b743c0f3db
11 changed files with 227 additions and 18 deletions

View File

@@ -54,7 +54,7 @@ class SwaggerUi extends Backbone.Router
switch @options.docExpansion
when "full" then Docs.expandOperationsForResource('')
when "list" then Docs.collapseOperationsForResource('')
@options.onComplete() if @options.onComplete
@options.onComplete(@api, @) if @options.onComplete
setTimeout(
=>
Docs.shebang()

View File

@@ -6,6 +6,7 @@ class ParameterView extends Backbone.View
template = @template()
$(@el).html(template(@model))
@
# Return an appropriate template based on if the parameter is a list, readonly, required