appMobi/jQ.Mobi — Issue #89: Something wrong with toggleNavMenu function in jq.ui.js
Author: Heliumchen
Created: 2012-02-16 20:55:31+00:00
State: open

```javascript
toggleNavMenu: function(force) {
if (!jq.ui.showNavMenu)
return;
if (jq("#navbar").css("display") != "none" && ((force !== undefined && force === true) || force === undefined)) {
jq("#content").css("bottom", "0px");
jq("#navbar").hide();
} else {
jq("#navbar").show();
jq("#content").css("bottom", jq("#navbar").css("height"));

}
}
```

if navbar is already set "display: none" and we call toggleNavMenu(false),
the navbar will show instead of forcing it to hide.