1
0
Fork 0
forked from 0x2620/oxjs

update video editor (maps)

This commit is contained in:
rlx 2012-01-16 19:32:30 +05:30
commit f5d587cf5b
5 changed files with 81 additions and 44 deletions

View file

@ -246,14 +246,13 @@ Ox.AnnotationFolder = function(options, self) {
}
self.$resizebar.css({top: self.options.widgetSize + 'px'});
self.$inner.css({height: self.options.widgetSize + 'px'});
self.$widget.css({
height: self.options.widgetSize + 'px'
});
self.$widget.options({height: self.options.widgetSize});
}
//self.options.type == 'place' && self.$map.resizeMap();
}
function dragend(e) {
//self.options.type == 'place' && self.$map.resizeMap();
if (self.options.showWidget) {
that.triggerEvent('resizewidget', {size: self.options.widgetSize});
}
@ -404,11 +403,13 @@ Ox.AnnotationFolder = function(options, self) {
}
} else if (key == 'position') {
if (self.options.range == 'position') {
Ox.print('POSITION CHANGED, UPDATING')
self.widget && updateWidget();
updateAnnotations();
}
} else if (key == 'range') {
self.$annotations.options({items: getAnnotations()});
self.widget && updateWidget();
updateAnnotations();
} else if (key == 'selected') {
if (value === '') {
self.editing = false;
@ -450,11 +451,13 @@ Ox.AnnotationFolder = function(options, self) {
};
that.blurItem = function() {
self.editing = false;
self.$annotations.blurItem();
return that;
};
that.editItem = function() {
self.editing = true;
self.$annotations.editItem();
return that;
};