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
This commit is contained in:
Bartosz Dziewoński 2014-09-29 13:45:10 +02:00
parent 8146fe213c
commit c81ed82fa8

View file

@ -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' );