Cannot back button for nested list (latest version)

I'm having trouble trying to return the back button in the following list. I see the same thing happening with your demo here:

http://jquerymobile.com/test/#/test/docs/lists/lists-nested.html

You can see this problem here:

http://jquerymobile.com/test/#/test/docs/lists/lists-nested.html&ui-page=Animals-8

or just click on any list.

Here is my problem:

<ul data-role="listview" data-inset="true">';
<li data-icon="info">
<h3 class="ui-li-heading">Heading here</h3>
<p class="ui-li-desc">Author:&nbsp;<strong>some author</strong></p>
<p class="ui-li-desc">Description:&nbsp;<strong>some description</strong></p>

            <ul data-role="listview" data-inset="true" data-add-back-btn="true">
                <li>sometthing here</li>
            </ul>

</li>
</ul>

Is this a mistake or am I forgetting something?

thank

UPDATE: Another example:

<ul data-role='listview'>
            <li>
                <li><div>Some Text</div><p>ddd</p>
                    <ul data-role='listview'>

                        <li>
                            some text here
                        </li>

                    </ul>
                </li>
            </li>
        </ul>   

There is no back button. How to make the back button?

+3
source share
1 answer

"", data-add-back-btn="true" :

: JQuery Mobile Latest 03 2011 . -

, , , ( ) .

UPDATE:

jQuery Mobile "" , . , , - . framework "" , addBackBtn true. , data-add-back-btn = "true".

data-rel= "back" , "", href. , , "home", "" JavaScript, , . , href, URL- ( C-Grade. , , , , data-direction = "reverse".

, :

$(document).bind("mobileinit", function(){
    $.mobile.page.prototype.options.addBackBtn = true;
});
+1

All Articles