From 3f8863b05ae958589a7e017e1a3f53588bc62ddf Mon Sep 17 00:00:00 2001 From: Rob Moen Date: Thu, 21 Jun 2012 13:01:42 -0700 Subject: [PATCH] If siteNotice is visible, add class and slide it up. On ve exit, SlideDown fast if hidden by ve Change-Id: I2a4104590de15da1302181a68d38bf271bcca249 --- modules/ve/init/targets/ve.init.ViewPageTarget.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/ve/init/targets/ve.init.ViewPageTarget.js b/modules/ve/init/targets/ve.init.ViewPageTarget.js index 7e58d00f80..0dfa8e575d 100644 --- a/modules/ve/init/targets/ve.init.ViewPageTarget.js +++ b/modules/ve/init/targets/ve.init.ViewPageTarget.js @@ -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' ); }; /**