Allow plugins to add panes to mobile nav drawer

This commit is contained in:
fkloft
2013-12-02 23:18:55 +01:00
parent 40d25ad8ef
commit ad6a447bde
4 changed files with 22 additions and 4 deletions

View File

@ -3,6 +3,8 @@
window.show = function(id) {
window.hideall();
runHooks("paneChanged", id);
switch(id) {
case 'full':
window.chat.show('full');
@ -27,9 +29,6 @@ window.show = function(id) {
case 'info':
window.smartphone.sideButton.click();
break;
default:
window.smartphone.mapButton.click();
break;
}
if (typeof android !== 'undefined' && android && android.switchToPane) {