mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
much cleaner way of showing / hiding overlay
This commit is contained in:
parent
69a4ab76cf
commit
a1d9d27cde
2 changed files with 2 additions and 15 deletions
|
@ -76,7 +76,6 @@ var padconnectionstatus = (function()
|
|||
},
|
||||
isFullyConnected: function()
|
||||
{
|
||||
padmodals.hideOverlay();
|
||||
return status.what == 'connected';
|
||||
},
|
||||
getStatus: function()
|
||||
|
|
|
@ -40,22 +40,10 @@ var padmodals = (function()
|
|||
});
|
||||
},
|
||||
showOverlay: function(duration) {
|
||||
$("#overlay").show().css(
|
||||
{
|
||||
'opacity': 0
|
||||
}).animate(
|
||||
{
|
||||
'opacity': 1
|
||||
}, duration);
|
||||
$("#overlay").show();
|
||||
},
|
||||
hideOverlay: function(duration) {
|
||||
$("#overlay").hide().css(
|
||||
{
|
||||
'opacity': 0
|
||||
}, duration, function()
|
||||
{
|
||||
$("#modaloverlay").hide();
|
||||
});
|
||||
$("#overlay").hide();
|
||||
}
|
||||
};
|
||||
return self;
|
||||
|
|
Loading…
Reference in a new issue