1
0
Fork 0
forked from 0x2620/oxjs

events are lowercase, VideoPanel defaults

This commit is contained in:
j 2012-02-01 07:17:47 +00:00
commit 02e53ed3e0
2 changed files with 9 additions and 3 deletions

View file

@ -16,7 +16,9 @@ Ox.VideoPanel = function(options, self) {
self = self || {};
var that = Ox.Element({}, self)
.defaults({
annotationsCalendarSize: 256,
annotationsFont: 'small',
annotationsMapSize: 256,
annotationsRange: 'all',
annotationsSize: 256,
annotationsSort: 'position',
@ -40,6 +42,8 @@ Ox.VideoPanel = function(options, self) {
resolution: 0,
scaleToFill: false,
showAnnotations: false,
showAnnotationsCalendar: false,
showAnnotationsMap: false,
showLayers: {},
showTimeline: true,
showUsers: false,
@ -98,6 +102,7 @@ Ox.VideoPanel = function(options, self) {
.bindEvent({
find: function(data) {
self.$timeline.options({find: data.find});
self.$annotationPanel.options({highlight: data.find});
that.triggerEvent('find', data);
},
fullscreen: function(data) {
@ -172,6 +177,7 @@ Ox.VideoPanel = function(options, self) {
clickLink: self.options.clickLink,
editable: false,
font: self.options.annotationsFont,
highlight: self.options.find,
'in': self.options['in'],
layers: self.options.layers,
mapSize: self.options.annotationsMapSize,