forked from 0x2620/oxjs
update video editor (maps, calendars)
This commit is contained in:
parent
1445824ffd
commit
dc47e901ad
9 changed files with 196 additions and 69 deletions
|
|
@ -1214,7 +1214,21 @@ Ox.Calendar = function(options, self) {
|
|||
|
||||
self.setOption = function(key, value) {
|
||||
if (key == 'date') {
|
||||
|
||||
// ...
|
||||
} else if (key == 'events') {
|
||||
value.forEach(function(event) {
|
||||
event = getEventData(event);
|
||||
});
|
||||
self.$lines = [];
|
||||
getLines();
|
||||
renderCalendar();
|
||||
if (self.options.selected) {
|
||||
if (getSelectedEvent()) {
|
||||
selectEvent(self.options.selected);
|
||||
} else {
|
||||
self.options.selected = '';
|
||||
}
|
||||
}
|
||||
} else if (key == 'height') {
|
||||
that.css({height: self.options.height + 'px'});
|
||||
} else if (key == 'selected') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue