mobile: Fix desktop mode

(plugins would not be reachable)
This commit is contained in:
fkloft
2013-12-17 16:46:16 +01:00
parent f1aaad3c22
commit f2b3f3466e
4 changed files with 11 additions and 5 deletions

View File

@ -114,7 +114,7 @@ window.plugin.portalslist.displayPL = function() {
html = '<table><tr><td>Nothing to show!</td></tr></table>';
};
if(typeof android !== 'undefined' && android && android.addPane) {
if(window.useAndroidPanes()) {
$('<div id="portalslist" class="mobile">' + html + '</div>').appendTo(document.body);
} else {
dialog({
@ -248,7 +248,7 @@ window.plugin.portalslist.onPaneChanged = function(pane) {
};
var setup = function() {
if(typeof android !== 'undefined' && android && android.addPane) {
if(window.useAndroidPanes()) {
android.addPane("plugin-portalslist", "Portals list", "ic_action_paste");
addHook("paneChanged", window.plugin.portalslist.onPaneChanged);
} else {