File tree 2 files changed +2
-13
lines changed
2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 45
45
</ div >
46
46
</ li >
47
47
< % IF module.sloc > 0 %>
48
- < li > < div > < button class ="btn-link pod-toggle " onclick ="togglePod() "> < i class ="fa fa-exchange fa-fw black "> </ i > < span class ="hide-pod "> Hide</ span > < span class ="show-pod "> Show</ span > Pod</ button > </ div > </ li >
48
+ < li > < div > < button class ="btn-link pod-toggle<% IF module.sloc > 0; " pod-hidden "; END % > " onclick="togglePod()"> < i class ="fa fa-exchange fa-fw black "> </ i > < span class ="hide-pod "> Hide</ span > < span class ="show-pod "> Show</ span > Pod</ button > </ div > </ li >
49
49
< % END %>
50
50
< li class ="nav-header "> Info</ li >
51
51
< li > < % module.sloc %> lines of code</ li >
55
55
56
56
< div class ="content ">
57
57
< % IF !module.binary %>
58
- < pre id ="source " class ="line-numbers " data-pod-lines ="<%
58
+ < pre id ="source " class ="line-numbers pod-toggle<% IF module.sloc > 0; " pod-hidden "; END % > " data-pod-lines="< %
59
59
module.pod_lines.map(-> (l){ l.0+1 _ "-" _ (l.0+l.1) }).join(', ')
60
60
%> "> < code class ="language-<% filetype %> "> < % source %> </ code > </ pre >
61
61
< % ELSE %>
62
62
This file cannot be displayed inline. Try the < a href ="<% raw_url %> "> raw file</ a > .
63
63
< % END %>
64
64
</ div >
65
-
66
- < script type ="text/javascript ">
67
-
68
- //document.getElementById('source').style.visibility = 'hidden';
69
- //SyntaxHighlighter.all();
70
- $ ( document ) . ready ( function ( ) {
71
- < % IF module . sloc > 0 %>
72
- togglePod ( ) ;
73
- < % END % >
74
- </ script >
Original file line number Diff line number Diff line change @@ -166,6 +166,5 @@ $(function () {
166
166
} ) ;
167
167
168
168
function togglePod ( ) {
169
- $ ( '.syntaxhighlighter' ) . toggleClass ( 'pod-hidden' ) ;
170
169
$ ( '.pod-toggle' ) . toggleClass ( 'pod-hidden' ) ;
171
170
}
You can’t perform that action at this time.
0 commit comments