提交 01fa3e13 authored 作者: Thomas Mueller's avatar Thomas Mueller

Fix displaying the source code

上级 35bd9b1f
...@@ -58,7 +58,7 @@ for (var i = 0; i<params.length; i++) { ...@@ -58,7 +58,7 @@ for (var i = 0; i<params.length; i++) {
// --> // -->
</script> </script>
</td> </td>
<td width="92%" style="vertical-align: top"> <td style="width: 3950px; vertical-align: top">
<iframe id = "source" frameborder="0" marginwidth="0" marginheight="0" width="100%" height="80000px" scrolling="no" src=""> <iframe id = "source" frameborder="0" marginwidth="0" marginheight="0" width="100%" height="80000px" scrolling="no" src="">
</iframe> </iframe>
</td> </td>
......
...@@ -78,7 +78,7 @@ function go(file, line) { ...@@ -78,7 +78,7 @@ function go(file, line) {
url += "&build="; url += "&build=";
url += build; url += build;
get('file').innerHTML = file; get('file').innerHTML = file;
get('code').src = url; get('code').src = url;
} else { } else {
if (build && build > 0) { if (build && build > 0) {
var tag = 'tags/version-' + getVersion(build) + '/h2'; var tag = 'tags/version-' + getVersion(build) + '/h2';
...@@ -120,7 +120,6 @@ function convert() { ...@@ -120,7 +120,6 @@ function convert() {
} }
get('errorCode').innerHTML = errorCode; get('errorCode').innerHTML = errorCode;
goDetails(errorCode); goDetails(errorCode);
s = s.substring(end + 1);
} }
idx = 0; idx = 0;
s = s.replace(/\t/g, " "); s = s.replace(/\t/g, " ");
...@@ -237,8 +236,8 @@ function sizeTextArea() { ...@@ -237,8 +236,8 @@ function sizeTextArea() {
<p id = "links"></p> <p id = "links"></p>
</td><td style="border:0px" width="90%"> </td><td style="border:0px" width="90%">
<p><b>Source File: </b><span id = "file"></span><br /> <p><b>Source File: </b><span id = "file"></span><br />
Raw file <input type="checkbox" id = "rawSource" /> (fast; only Firefox)</p> Inline <input type="checkbox" id = "rawSource" checked="checked" /></p>
<iframe id = "code" frameborder="0" marginwidth="0" marginheight="0" width="100%" height="100px" src=""> <iframe id = "code" frameborder="0" marginwidth="0" marginheight="0" width="4000px" height="100px" src="">
</iframe> </iframe>
</td> </td>
</tr></table> </tr></table>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论