1
0
Fork 0
forked from 0x2620/oxjs

update video editor (maps, calendars)

This commit is contained in:
rlx 2012-01-17 17:20:31 +05:30
commit 961f4f959a
6 changed files with 62 additions and 71 deletions

View file

@ -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;
};