forked from 0x2620/pandora
some work towards making places and events editable from annotations panel (#561)
This commit is contained in:
parent
4629d64361
commit
b77045f375
6 changed files with 11 additions and 4 deletions
|
|
@ -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
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue