Merge "Hid category links in source edit mode"

This commit is contained in:
jenkins-bot 2016-10-07 22:08:30 +00:00 committed by Gerrit Code Review
commit 800dceaa0e
3 changed files with 10 additions and 3 deletions

View file

@ -40,6 +40,10 @@
text-decoration: none;
}
.ve-init-mw-articleTarget-source .catlinks {
display: none;
}
/*!
* 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 ) {
// Parent constructor
ve.init.mw.DesktopWikitextArticleTarget.super.call( this, config );
// Initialization
this.$element.addClass( 've-init-mw-desktopWikitextArticleTarget' );
};
/* Inheritance */

View file

@ -194,6 +194,12 @@ ve.init.mw.ArticleTarget.static.platformType = 'other';
*/
ve.init.mw.ArticleTarget.prototype.setMode = function ( 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.updateTabs( true );
}