Skip to content

Commit 6dd513d

Browse files
Update redirect demo PHP source code view.
1 parent 2caf31e commit 6dd513d

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

docs/demos/redirect/index.html

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,6 @@
88
<link rel="stylesheet" href="../_assets/css/jqm-demos.css">
99
<script src="../../../js/jquery.js"></script>
1010
<script src="../_assets/js/jqm-demos.js"></script>
11-
<script>
12-
$( function() {
13-
$.ajax( "redirect.php?source" )
14-
.success( function( data ) {
15-
$( "#phpSource" ).html( data );
16-
})
17-
.error( function() {
18-
$( "#phpSource" ).html( "<p>Failed to retrieve PHP source</p>" );
19-
});
20-
});
21-
</script>
2211
<script src="../../../js/"></script>
2312
<script id="redirectCode">
2413
$( document ).bind( "pagebeforechange", function( e, data ) {
@@ -49,11 +38,11 @@ <h1>Redirect: Source Page</h1>
4938
<div data-role="content">
5039

5140
<div class="content-primary">
52-
<div data-role="popup" class="ui-content" data-position-to="window" id="phpSource"><p>Loading PHP source ...</p></div>
53-
<div data-demo-html="true" data-demo-js="#redirectCode">
41+
42+
<div data-demo-html="true" data-demo-js="#redirectCode" data-demo-php="redirect">
5443
<p><a href="redirect.php?to=redirect-target.html" data-role="button" data-inline="true">Redirect</a></p>
5544
</div><!--/demo-html -->
56-
<p><a href="#phpSource" data-rel="popup" data-role="button" data-inline="true">View PHP Source</a></p>
45+
5746
</div><!--/content-primary -->
5847

5948
</div><!-- /content -->

0 commit comments

Comments
 (0)