[FIX] expandable code in compiled rippled-apis page; linebreaks in pre>code

This commit is contained in:
mDuo13
2014-09-11 11:58:13 -07:00
parent c9474d8269
commit 7c8d0396a6
3 changed files with 10 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
$(document).on('flatdoc:ready', function() {
function make_code_expandable() {
$('code').dblclick(function(eo) {
$(eo.target).toggleClass('expanded');
});
$('code').attr('title', 'Double-click to expand/collapse');
});
}
$(document).on('flatdoc:ready', make_code_expandable);