in button, react to change of tooltip option
This commit is contained in:
parent
da7e0b73e0
commit
e6b634ddef
2 changed files with 4 additions and 1 deletions
|
@ -131,7 +131,7 @@ Ox.Button = function(options, self) {
|
||||||
}
|
}
|
||||||
that.triggerEvent('change');
|
that.triggerEvent('change');
|
||||||
} else if (key == 'tooltip') {
|
} else if (key == 'tooltip') {
|
||||||
|
that.$tooltip.options({title: value});
|
||||||
} else if (key == 'title') {
|
} else if (key == 'title') {
|
||||||
setTitle(value);
|
setTitle(value);
|
||||||
} else if (key == 'width') {
|
} else if (key == 'width') {
|
||||||
|
|
|
@ -2126,6 +2126,9 @@ Ox.VideoPlayer = function(options, self) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function togglePaused(from) {
|
function togglePaused(from) {
|
||||||
|
if (!self.loadedMetadata) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
self.options.paused = !self.options.paused;
|
self.options.paused = !self.options.paused;
|
||||||
self.$timeline && self.$timeline.options({
|
self.$timeline && self.$timeline.options({
|
||||||
paused: self.options.paused
|
paused: self.options.paused
|
||||||
|
|
Loading…
Reference in a new issue