some work towards making places and events editable from annotations panel (#561)

This commit is contained in:
rolux 2012-02-21 10:11:01 +00:00
commit b77045f375
6 changed files with 11 additions and 4 deletions

View file

@ -2,7 +2,8 @@
'use strict';
pandora.ui.eventsDialog = function() {
pandora.ui.eventsDialog = function(options) {
// options can be {id: '...'} or {name: '...'}
var height = Math.round((window.innerHeight - 48) * 0.9),
width = Math.round(window.innerWidth * 0.9),
that = Ox.Dialog({
@ -93,6 +94,7 @@ pandora.ui.eventsDialog = function() {
callback(result);
});
},
selected: options ? options.id : '',
showControls: pandora.user.ui.showCalendarControls,
width: width
})