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

@ -184,7 +184,7 @@ window.plugin.portalcounts.getPortals = function (){
var total = self.enlP + self.resP + self.neuP;
var title = total + ' ' + (total == 1 ? 'portal' : 'portals');
if(typeof android !== 'undefined' && android && android.addPane) {
if(window.useAndroidPanes()) {
$('<div id="portalcounts" class="mobile">'
+ '<div class="ui-dialog-titlebar"><span class="ui-dialog-title ui-dialog-title-active">' + title + '</span></div>'
+ counts
@ -307,7 +307,7 @@ window.plugin.portalcounts.onPaneChanged = function(pane) {
};
var setup = function() {
if(typeof android !== 'undefined' && android && android.addPane) {
if(window.useAndroidPanes()) {
android.addPane("plugin-portalcounts", "Portal counts", "ic_action_data_usage");
addHook("paneChanged", window.plugin.portalcounts.onPaneChanged);
} else {