fix video preview tooltip layout

This commit is contained in:
rolux 2013-02-11 11:36:24 +05:30
parent c0e4dc6e01
commit e002e2a566

View file

@ -75,8 +75,10 @@ Ox.VideoPreview = function(options, self) {
self.timeout = setTimeout(function() {
self.$frame.attr({src: self.options.getFrame(position)});
}, 250);
return (self.options.tooltip ? self.options.tooltip + '<br>' : '')
+ Ox.formatDuration(position, 2);
return '<div style="text-align: center>"'
+ (self.options.tooltip ? self.options.tooltip + '<br>' : '')
+ Ox.formatDuration(position, 2)
+ '</div>';
}
})
.addClass('OxInterface')