honor ui preferences in events/places dialogs

This commit is contained in:
rolux 2011-10-31 12:46:17 +00:00
parent f2e0c2c701
commit 01510f830b
4 changed files with 5 additions and 0 deletions

View file

@ -616,6 +616,7 @@
"section": "items",
"showAnnotations": true,
"showBrowser": true,
"showCalendarControls": true, // fixme: should be false
"showControls": true,
"showFlags": true,
"showGroups": true,

View file

@ -89,6 +89,7 @@ pandora.ui.eventsDialog = function() {
callback(result);
});
},
showControls: pandora.user.ui.showCalendarControls,
width: width
})
});

View file

@ -206,6 +206,7 @@ pandora.ui.navigationView = function(type, videoRatio) {
// 20 px menu, 24 px toolbar, 1px resizbar, 16px statusbar
height: window.innerHeight - ui.showGroups * ui.groupsSize - 61,
range: [-5000, 5000],
showControls: ui.showCalendarControls,
width: window.innerWidth - ui.showSidebar * ui.sidebarSize - listSize - 2,
zoom: 4
})

View file

@ -42,6 +42,8 @@ pandora.ui.placesDialog = function() {
callback(result);
});
},
showControls: pandora.user.ui.showMapControls,
showLabels: pandora.user.ui.showMapLabels,
showTypes: true,
width: width
}),