From c81ed82fa8c971369e74bc4683e9c5e238cb71dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Mon, 29 Sep 2014 13:45:10 +0200 Subject: [PATCH] Add rudimentary support for page status indicators Just hide them when opening the editor and show again afterwards. Will need Parsoid for proper support. Corresponding patch in core: I2389ff9a5332a2b1d033eb75f0946e5241cfaaf4. Bug: 23796 Change-Id: I3ce5e7869be50dcd189ca24e2b3d7ebc62de4fc4 --- modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js index 1638aa0a02..e31a8091aa 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js @@ -1433,6 +1433,10 @@ ve.init.mw.ViewPageTarget.prototype.transformPage = function () { $( '#siteNotice:visible' ) .addClass( 've-hide' ) .slideUp( 'fast' ); + // Hide page status indicators (if present) + $( '.mw-indicators:visible' ) + .addClass( 've-hide' ) + .fadeOut( 'fast' ); // Add class to document $( 'html' ).addClass( 've-activated' ); @@ -1466,6 +1470,9 @@ ve.init.mw.ViewPageTarget.prototype.restorePage = function () { // Make site notice visible again (if present) $( '#siteNotice.ve-hide' ) .slideDown( 'fast' ); + // Make page status indicators visible again (if present) + $( '.mw-indicators.ve-hide' ) + .fadeIn( 'fast' ); // Remove class from document $( 'html' ).removeClass( 've-activated' );