events are lowercase, VideoPanel defaults

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

View file

@ -442,14 +442,14 @@ Ox.VideoEditor = function(options, self) {
width: 256
}).open();
} else if (id == 'downloadVideo') {
that.triggerEvent('downloadVideo');
that.triggerEvent('downloadvideo');
} else if (id == 'downloadSelection') {
that.triggerEvent('downloadSelection', {
that.triggerEvent('downloadselection', {
'in': self.options['in'],
out: self.options.out,
});
} else if (id == 'embedSelection') {
that.triggerEvent('embedSelection', {
that.triggerEvent('embedselection', {
'in': self.options['in'],
out: self.options.out,
});

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,