add tooltip option to Ox.VideoPreview

This commit is contained in:
rolux 2013-02-11 11:19:05 +05:30
parent 4d9be17e6c
commit c0e4dc6e01

View file

@ -20,6 +20,7 @@ Ox.VideoPreview = function(options, self) {
position: void 0,
scaleToFill: false,
timeline: '',
tooltip: '',
width: 256
})
.options(options || {})
@ -74,7 +75,8 @@ Ox.VideoPreview = function(options, self) {
self.timeout = setTimeout(function() {
self.$frame.attr({src: self.options.getFrame(position)});
}, 250);
return Ox.formatDuration(position, 2);
return (self.options.tooltip ? self.options.tooltip + '<br>' : '')
+ Ox.formatDuration(position, 2);
}
})
.addClass('OxInterface')