hyperlink - Jquery Mobile issue with sliding back when im clicking back -
i have great issue data-transition of a
tag. when i'm clicking on tag goes right transition back(right left)
, goes from left right
. button(a tag):
<a href="#account" data-direction="reverse" data-role="button" data-inline="true" data-icon="arrow-l" data-transition="slide" data-iconpos="notext" data-rel="back"></a>
html structure:
<!-- #account --> <div data-role="page" id="account"> <div data-role="panel" id="panel_menu" data-display="reveal"></div> <div data-role="header" data-position="fixed"> <div class="ui-btn-left"> <a href="#panel_menu" data-display="push" data-role="button" data-inline="true" data-icon="home" data-iconpos="notext"></a> </div> <h3>account</h3> <div class="ui-btn-right"> <a href="" id="logout" data-role="button" data-theme="r">logout</a> </div> </div> <div data-role="content"></div> </div> <!-- #shop --> <div data-role="page" id="shop"> <div data-role="panel" id="panel_menu" data-display="reveal"></div> <div data-role="header" data-position="fixed"> <div class="ui-btn-left"> <a href="#panel_menu" data-display="push" data-role="button" data-inline="true" data-icon="home" data-iconpos="notext"></a> <a href="#account" data-direction="reverse" data-role="button" data-inline="true" data-icon="arrow-l" data-transition="slide" data-iconpos="notext" data-rel="back"></a> </div> <h3>shop</h3> </div> <div data-role="content"> <ul data-role="listview" data-inset="false" id="listview_shop"></ul> </div> </div> <!-- #shop_details --> <div data-role="page" id="shop_details"> <div data-role="panel" id="panel_menu" data-display="reveal"></div> <div data-role="header" data-position="fixed"> <div class="ui-btn-left"> <a href="#panel_menu" data-display="push" data-role="button" data-inline="true" data-icon="home" data-iconpos="notext"></a> <a href="#shop" data-direction="reverse" data-role="button" data-inline="true" data-icon="arrow-l" data-transition="slide" data-iconpos="notext"></a> </div> <h3>shop details</h3> </div> <div data-role="content"></div> </div>
when i'm clicking in shop_details on button slides in right way.. when i'm clicking in shop on slides in wrong way..
thanks in advance help
remove attribute data-rel="back"
button:
<a href="#account" data-direction="reverse" data-role="button" data-inline="true" data-icon="arrow-l" data-transition="slide" data-iconpos="notext" data-rel="back"></a>
data-rel="back"
return previous page, in case return page shop page shop_details.
working example: http://jsfiddle.net/mdr3e/
Comments
Post a Comment