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:
Rob Moen 2012-06-21 13:01:42 -07:00
parent d4e51abac6
commit 3f8863b05a

View file

@ -829,7 +829,9 @@ ve.init.ViewPageTarget.prototype.restoreSkinTabs = function() {
* @method * @method
*/ */
ve.init.ViewPageTarget.prototype.hideSiteNotice = function(){ 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 * @method
*/ */
ve.init.ViewPageTarget.prototype.restoreSiteNotice = function(){ ve.init.ViewPageTarget.prototype.restoreSiteNotice = function(){
$('#siteNotice').show(); $(' #siteNotice.ve-hide' )
.slideDown( 'fast' );
}; };
/** /**