Adding operation number to create a unique href for the <a/> tag.

This commit is contained in:
Alberto Pose
2012-11-22 16:40:42 -03:00
parent a1337cf118
commit 75ff471425
3 changed files with 14 additions and 7 deletions

View File

@@ -146,5 +146,5 @@ class OperationView extends Backbone.View
hljs.highlightBlock($('.response_body', $(@el))[0])
toggleOperationContent: ->
elem = $('#' + @model.resourceName + "_" + @model.nickname + "_" + @model.httpMethod + "_content");
elem = $('#' + @model.resourceName + "_" + @model.nickname + "_" + @model.httpMethod + "_" + @model.number + "_content");
if elem.is(':visible') then Docs.collapseOperation(elem) else Docs.expandOperation(elem)