templates/default/fulldoc/html/js/docco.js in yard-docco-1.0.1 vs templates/default/fulldoc/html/js/docco.js in yard-docco-1.0.2
- old
+ new
@@ -1,14 +1,19 @@
function createAnnotatedSourceLinks() {
- $('.method_details_list .annotated_source_code').
- before("<span class='showSource'>[<a href='#' class='annotatedToggleSource'>View annotated source</a>]</span>");
+ $('.method_details_list .annotated_source_code').each(function(index,element) {
+
+ var spanToggleAnnotatedSource = "<span class='showSource'>[<a href='#' class='annotatedToggleSource'>View Annotated source</a>]</span>";
+
+ $(element).before(spanToggleAnnotatedSource);
+ });
+
$('.annotatedToggleSource').toggle(function() {
$(this).parent().next().slideDown(100);
- $(this).text("Hide annotated source");
+ $(this).text("Hide Annotated source");
},
function() {
$(this).parent().next().slideUp(100);
- $(this).text("View annotated source");
+ $(this).text("View Annotated source");
});
}
$(createAnnotatedSourceLinks);
\ No newline at end of file