yay: dev complete: swagger javascript sandbox

This commit is contained in:
Ayush Gupta
2011-07-28 16:35:05 -07:00
parent cde87fbddf
commit 2a6ed09f74
8 changed files with 158 additions and 64 deletions

View File

@@ -49,9 +49,6 @@ $(function() {
return error_free;
});
// Handle URL fragments
Docs.shebang();
});
function clippyCopiedCallback(a) {
@@ -91,9 +88,17 @@ var Docs = {
// Refer to the endpoint DOM element, e.g. #words_get_search
log('shebang endpoint: ' + fragments.join('_'));
// Expand Resource
Docs.expandEndpointListForResource(fragments[0]);
$("#"+dom_id).slideto({highlight: false});
// Expand operation
var li_dom_id = fragments.join('_');
var li_content_dom_id = li_dom_id + "_content";
log("li_dom_id " + li_dom_id);
log("li_content_dom_id " + li_content_dom_id);
Docs.expandOperation($('#'+li_content_dom_id));
$('#'+li_dom_id).slideto({highlight: false});
break;