Hid category links in source edit mode

Change-Id: Ib44e393d3a8d070a4ced002a11cb26f58447e67c
This commit is contained in:
Ed Sanders 2016-10-07 16:24:23 -04:00
parent 7551b0e788
commit 605f7b625b
3 changed files with 10 additions and 3 deletions

View file

@ -40,6 +40,10 @@
text-decoration: none; text-decoration: none;
} }
.ve-init-mw-articleTarget-source .catlinks {
display: none;
}
/*! /*!
* Increase z-index of surface container so it appears above the debug bar * Increase z-index of surface container so it appears above the debug bar
*/ */

View file

@ -16,9 +16,6 @@
ve.init.mw.DesktopWikitextArticleTarget = function VeInitMwDesktopWikitextArticleTarget( config ) { ve.init.mw.DesktopWikitextArticleTarget = function VeInitMwDesktopWikitextArticleTarget( config ) {
// Parent constructor // Parent constructor
ve.init.mw.DesktopWikitextArticleTarget.super.call( this, config ); ve.init.mw.DesktopWikitextArticleTarget.super.call( this, config );
// Initialization
this.$element.addClass( 've-init-mw-desktopWikitextArticleTarget' );
}; };
/* Inheritance */ /* Inheritance */

View file

@ -194,6 +194,12 @@ ve.init.mw.ArticleTarget.static.platformType = 'other';
*/ */
ve.init.mw.ArticleTarget.prototype.setMode = function ( mode ) { ve.init.mw.ArticleTarget.prototype.setMode = function ( mode ) {
if ( mode !== this.mode ) { if ( mode !== this.mode ) {
// The follow classes are used here:
// * ve-init-mw-articleTarget-visual
// * ve-init-mw-articleTarget-source
this.$element
.removeClass( 've-init-mw-articleTarget-' + this.mode )
.addClass( 've-init-mw-articleTarget-' + mode );
this.mode = mode; this.mode = mode;
this.updateTabs( true ); this.updateTabs( true );
} }