appMobi/jQ.Mobi — pull request #142 by mschatke (2012-05-30 16:29:40+00:00)
Title: 1. allow div.panel to be included in xhr responses, 2. introduce "data-reverse" attribute for anchors

I've implemented two changes as discussed in the forum. (http://forums.appmobi.com/viewtopic.php?f=26&t=1217)

1. this change is mainly affecting the "updateContentDiv" and the "addContentDiv"
I create an element in both methods, ".innerHTML" the xhr response and then check if the the element includes a div.panel in wich case i'll make that the new panel.
it would be better to create a "div = $(content)" and then check and wrap it in a div.panel if it is not included, however I had problems when not using the innerHTML method

2. a small change. Any anchor tag can have the "data-reverse" attribute in which case a "back = true" will be given to the transition method