appMobi/jQ.Mobi — Issue #91: parsePanelFunctions should be modified according to the change in #89
Author: Heliumchen
Created: 2012-02-17 05:18:54+00:00
State: open

Original one.
```javascript
parsePanelFunctions: function(what, oldDiv) {
//check for custom footer
var that=this;
var hasFooter = what.getAttribute("data-footer");

window.setTimeout(function(){
if (hasFooter&&hasFooter.toLowerCase() == "none") {
that.toggleNavMenu(true);
} else{
that.toggleNavMenu(false);
}
```

it should be
```javascript
if (hasFooter&&hasFooter.toLowerCase() == "none") {
that.toggleNavMenu(false);
} else{
that.toggleNavMenu(true);
}
```

since
```javascript
$.ui.toggleNavMenu();//toggle it
$.ui.toggleNavMenu(true); //force show it
```

BTW, in jq.ui.js line 649, the 'dev' in the comment means 'div' ?
```javascript
if (what.getAttribute("data-tab")) { //Allow the dev to force the footer menu
```