misc fixes
This commit is contained in:
parent
7ca9a4a9e7
commit
b77852296b
7 changed files with 28 additions and 44 deletions
|
|
@ -20,14 +20,14 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
|
||||
self = self || {};
|
||||
var that = Ox.Element({}, self)
|
||||
.defaults({
|
||||
id: '',
|
||||
items: [],
|
||||
title: '',
|
||||
type: 'text',
|
||||
width: 0
|
||||
})
|
||||
.options(options || {});
|
||||
.defaults({
|
||||
id: '',
|
||||
items: [],
|
||||
title: '',
|
||||
type: 'text',
|
||||
width: 0
|
||||
})
|
||||
.options(options || {});
|
||||
|
||||
self.selected = -1;
|
||||
|
||||
|
|
@ -58,6 +58,8 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
self.$annotations = Ox.List({
|
||||
construct: function(data) {
|
||||
var $item = Ox.Element()
|
||||
.addClass('OxAnnotation OxTarget')
|
||||
.css({padding: '4px 4px 0 4px'})
|
||||
.append(
|
||||
Ox.Editable({
|
||||
type: 'textarea',
|
||||
|
|
@ -73,9 +75,7 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
}
|
||||
})
|
||||
)
|
||||
.append($('<div>').css({height: '4px'}))
|
||||
.css({padding: '4px 4px 0 4px'})
|
||||
.addClass('OxAnnotation OxTarget');
|
||||
.append($('<div>').css({height: '4px'}));
|
||||
return $item;
|
||||
},
|
||||
items: self.options.items,
|
||||
|
|
@ -155,8 +155,7 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
deselectItems <f> deselectItems
|
||||
@*/
|
||||
that.deselectItems = function() {
|
||||
if(self.$annotations.options('selected'))
|
||||
self.$annotations.options('selected',[]);
|
||||
self.$annotations.options('selected', []);
|
||||
};
|
||||
|
||||
return that;
|
||||
|
|
|
|||
|
|
@ -175,8 +175,8 @@ Ox.LargeVideoTimeline = function(options, self) {
|
|||
function setSubtitles() {
|
||||
self.$subtitles = [];
|
||||
self.options.subtitles.forEach(function(subtitle, i) {
|
||||
var found = self.options.find &&
|
||||
subtitle.text.toLowerCase().indexOf(self.options.find.toLowerCase()) > -1;
|
||||
var found = self.options.find
|
||||
&& subtitle.text.toLowerCase().indexOf(self.options.find.toLowerCase()) > -1;
|
||||
self.$subtitles[i] = $('<div>')
|
||||
.addClass('OxSubtitle' + (found ? ' OxHighlight' : ''))
|
||||
.css({
|
||||
|
|
@ -227,7 +227,7 @@ Ox.LargeVideoTimeline = function(options, self) {
|
|||
} else if (key == 'position') {
|
||||
setPosition();
|
||||
} else if (key == 'subtitles') {
|
||||
|
||||
// ...
|
||||
} else if (key == 'width') {
|
||||
setWidth();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue