minor changes

This commit is contained in:
rlx 2011-08-24 21:05:39 +00:00
parent 297ac0a141
commit 9ea5cce853
2 changed files with 6 additions and 5 deletions

View file

@ -318,8 +318,8 @@ Ox.load.UI = function(options, callback) {
}, 1000, function() {
if (error) {
$div.click(function() {
$div.remove();
});
$div.remove();
});
} else {
clearInterval(loadingInterval);
$div.remove();

View file

@ -255,7 +255,7 @@ Ox.VideoPlayer = function(options, self) {
----------------------------------------------------------------------------
*/
self.$videoContainer = $('<div>')
self.$videoContainer = Ox.Element()
.addClass('OxVideoContainer')
.css({
top: self.options.externalControls && self.options.controlsTop.length ? '16px' : 0,
@ -264,12 +264,13 @@ Ox.VideoPlayer = function(options, self) {
if (self.options.type == 'play') {
self.options.enableMouse && self.$videoContainer.bind({
click: function(e) {
self.options.enableMouse && self.$videoContainer.bindEvent({
anyclick: function(e) {
if (!$(e.target).is('.OxLogo')) {
togglePaused();
}
}
// fixme: support drag (left-right)
});
self.$video = Ox.VideoElement(