HTML bug fix on the blob page
That blob page sent *two* body tags. Now that we have bottom scripts,
we can fix that easily: don't try to set body.onload, but run the
prettyprinting through a bottom script on jQuery's document.ready.
| | |
| | | </wicket:link>
|
| | | </wicket:head>
|
| | |
|
| | | <body>
|
| | | <wicket:extend>
|
| | | <!-- need to specify body.onload -->
|
| | | <body onload="prettyPrint()">
|
| | |
|
| | | <!-- blob nav links -->
|
| | | <div class="page_nav2">
|
| | |
| | | <!-- blob image -->
|
| | | <img wicket:id="blobImage" style="padding-top:5px;"></img>
|
| | |
|
| | | </body>
|
| | | </wicket:extend>
|
| | | </body>
|
| | | </html> |
| | |
| | | table = missingBlob(blobPath, commit);
|
| | | } else {
|
| | | table = generateSourceView(source, extension, type == 1);
|
| | | addBottomScriptInline("jQuery(prettyPrint);");
|
| | | }
|
| | | add(new Label("blobText", table).setEscapeModelStrings(false));
|
| | | add(new Image("blobImage").setVisible(false));
|
| | |
| | | table = missingBlob(blobPath, commit);
|
| | | } else {
|
| | | table = generateSourceView(source, null, false);
|
| | | addBottomScriptInline("jQuery(prettyPrint);");
|
| | | }
|
| | | add(new Label("blobText", table).setEscapeModelStrings(false));
|
| | | add(new Image("blobImage").setVisible(false));
|