mirror of
https://github.com/videojs/video.js.git
synced 2024-12-16 11:37:29 +02:00
Merge pull request #458 from gkatsev/lockShowing
Make lockShowing apply a css class instead of modifying styles directly....
This commit is contained in:
commit
623bb75267
@ -102,6 +102,12 @@ body.vjs-full-window {
|
||||
/* Hide disabled or unsupported controls */
|
||||
.vjs-default-skin .vjs-hidden { display: none; }
|
||||
|
||||
.vjs-lock-showing {
|
||||
display: block !important;
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
/* DEFAULT SKIN (override in another file to create new skins)
|
||||
================================================================================
|
||||
Instead of editing this file, I recommend creating your own skin CSS file to be included after this file,
|
||||
|
@ -545,10 +545,7 @@ vjs.Component.prototype.fadeOut = function(){
|
||||
* @return {vjs.Component}
|
||||
*/
|
||||
vjs.Component.prototype.lockShowing = function(){
|
||||
var style = this.el_.style;
|
||||
style.display = 'block';
|
||||
style.opacity = 1;
|
||||
style.visibility = 'visible';
|
||||
this.addClass('vjs-lock-showing');
|
||||
return this;
|
||||
};
|
||||
|
||||
@ -557,10 +554,7 @@ vjs.Component.prototype.lockShowing = function(){
|
||||
* @return {vjs.Component}
|
||||
*/
|
||||
vjs.Component.prototype.unlockShowing = function(){
|
||||
var style = this.el_.style;
|
||||
style.display = '';
|
||||
style.opacity = '';
|
||||
style.visibility = '';
|
||||
this.removeClass('vjs-lock-showing');
|
||||
return this;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user