Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit fec1e85

Browse files
author
Gabriel Schulhof
committed
Toolbar: Stop using deprecated event in fixed persistent demo
Closes gh-7200 Fixes gh-7085
1 parent 4c58f71 commit fec1e85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demos/toolbar-fixed-persistent/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
$( "[data-role='header'], [data-role='footer']" ).toolbar();
1818
});
1919
// Update the contents of the toolbars
20-
$( document ).on( "pageshow", "[data-role='page']", function() {
20+
$( document ).on( "pagecontainershow", function() {
2121
// Each of the four pages in this demo has a data-title attribute
2222
// which value is equal to the text of the nav button
2323
// For example, on first page: <div data-role="page" data-title="Info">
24-
var current = $( this ).jqmData( "title" );
24+
var current = $( ".ui-page-active" ).jqmData( "title" );
2525
// Change the heading
2626
$( "[data-role='header'] h1" ).text( current );
2727
// Remove active class from nav buttons

0 commit comments

Comments
 (0)