Skip to content

Commit 312c97e

Browse files
committed
jqueryui.com: Fix demo source view.
1 parent f060f8d commit 312c97e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

mu-plugins/jqueryui.com/jquery-filters.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
$demoContent .=
3838
'<div class="view-source">' .
3939
'<a tabindex="0"><i class="icon-eye-open"></i> view source</a>' .
40-
'<pre>' .
40+
'<div>' .
4141
file_get_contents( GW_RESOURCE_DIR . '/demos-highlight/' . $plugin . '/default.html' ) .
42-
'</pre>' .
42+
'</div>' .
4343
'</div>';
4444

4545
return str_replace( '<!--demos-->', $demoContent, $content );

themes/jquery/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ $(function() {
102102
$(function() {
103103
var demoFrame = $( ".demo-frame" ),
104104
demoDescription = $( ".demo-description" ),
105-
sourceView = $( ".view-source pre" ),
105+
sourceView = $( ".view-source > div" ),
106106
demoList = $( ".demo-list" ),
107107
currentDemo = location.hash.substring( 1 );
108108

themes/jqueryui.com/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ a,
131131
cursor: pointer;
132132
}
133133

134-
.view-source pre {
134+
.view-source > div {
135135
overflow: hidden;
136136
display: none;
137137
}

0 commit comments

Comments
 (0)