mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
If siteNotice is visible, add class and slide it up. On ve exit,
SlideDown fast if hidden by ve Change-Id: I2a4104590de15da1302181a68d38bf271bcca249
This commit is contained in:
parent
d4e51abac6
commit
3f8863b05a
|
@ -829,7 +829,9 @@ ve.init.ViewPageTarget.prototype.restoreSkinTabs = function() {
|
|||
* @method
|
||||
*/
|
||||
ve.init.ViewPageTarget.prototype.hideSiteNotice = function(){
|
||||
$('#siteNotice').hide();
|
||||
$( '#siteNotice:visible' )
|
||||
.addClass( 've-hide' )
|
||||
.slideUp( 'fast' );
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -838,7 +840,8 @@ ve.init.ViewPageTarget.prototype.hideSiteNotice = function(){
|
|||
* @method
|
||||
*/
|
||||
ve.init.ViewPageTarget.prototype.restoreSiteNotice = function(){
|
||||
$('#siteNotice').show();
|
||||
$(' #siteNotice.ve-hide' )
|
||||
.slideDown( 'fast' );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue