diff --git a/docs/pages/docs-transitions.html b/docs/pages/docs-transitions.html index 3a0dd7ba..8debbfdc 100755 --- a/docs/pages/docs-transitions.html +++ b/docs/pages/docs-transitions.html @@ -37,7 +37,7 @@ flip

-

In addition, you can also force a "backwards" transition by specifying data-back="true" on your link.

+

In addition, you can also force a "backwards" transition by specifying data-direction="reverse" on your link. Note: (this was formerly data-back="true", which will remain supported until 1.0)

Transitions from jQtouch (with small modifications): Built by David Kaneda and maintained by Jonathan Stark.

diff --git a/docs/pages/transition-success.html b/docs/pages/transition-success.html index 1c0f38c5..b7567acd 100644 --- a/docs/pages/transition-success.html +++ b/docs/pages/transition-success.html @@ -20,7 +20,7 @@

That was an animated page transition effect that we added with a data-transition attribute on the link.

Since it uses CSS transforms, this should be hardware accelerated on many mobile devices.

What do you think?

- I like it + I like it
diff --git a/js/jquery.mobile.dialog.js b/js/jquery.mobile.dialog.js index 6d22d121..b1747957 100644 --- a/js/jquery.mobile.dialog.js +++ b/js/jquery.mobile.dialog.js @@ -23,7 +23,7 @@ $.widget( "mobile.dialog", $.mobile.widget, { return; } - if( e.type == "click" && ( $(e.target).closest('[data-back]')[0] || this==$closeBtn[0] ) ){ + if( e.type == "click" && this==$closeBtn[0] ){ self.close(); return false; } diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 9dbbb29a..c272bab6 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -573,7 +573,10 @@ else { //use ajax var transition = $this.data( "transition" ), - reverse = $this.data( "back" ); + direction = $this.data("direction"), + reverse = direction && direction == "reverse" || + // deprecated - remove by 1.0 + $this.data( "back" ); nextPageRole = $this.attr( "data-rel" );