forked from 0x2620/oxjs
update video editor (maps, calendars)
This commit is contained in:
parent
dc47e901ad
commit
961f4f959a
6 changed files with 62 additions and 71 deletions
|
|
@ -1223,15 +1223,14 @@ Ox.Calendar = function(options, self) {
|
|||
getLines();
|
||||
renderCalendar();
|
||||
if (self.options.selected) {
|
||||
if (getSelectedEvent()) {
|
||||
selectEvent(self.options.selected);
|
||||
} else {
|
||||
self.options.selected = '';
|
||||
}
|
||||
selectEvent(
|
||||
getSelectedEvent() ? self.options.selected : ''
|
||||
);
|
||||
}
|
||||
} else if (key == 'height') {
|
||||
that.css({height: self.options.height + 'px'});
|
||||
} else if (key == 'selected') {
|
||||
self.options.selected = 'FIXME: THIS IS A VERY UGLY HACK';
|
||||
selectEvent(value);
|
||||
} else if (key == 'width') {
|
||||
that.css({width: self.options.width + 'px'});
|
||||
|
|
@ -1304,8 +1303,10 @@ Ox.Calendar = function(options, self) {
|
|||
Ox.Log('Calendar', 'REMOVE ... SELF.OPTIONS', self.options)
|
||||
var index = Ox.getIndexById(self.options.events, self.options.selected);
|
||||
self.options.events.splice(index, 1);
|
||||
self.options.selected = '';
|
||||
getLines();
|
||||
renderCalendar();
|
||||
setEventControls('');
|
||||
return that;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue