app/assets/javascripts/apidoco/directives/jq_json_viewer.js in apidoco-1.3.0 vs app/assets/javascripts/apidoco/directives/jq_json_viewer.js in apidoco-1.5.0
- old
+ new
@@ -6,8 +6,11 @@
scope: {
data: "="
},
link: function(scope, elem, attrs) {
$(elem).jsonViewer(scope.data, { withQuotes: true });
+
+ // Collapse the second level
+ $(elem).find('ul.json-dict > li > ol > li > a.json-toggle').click();
}
};
}]);