mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Merge "Hid category links in source edit mode"
This commit is contained in:
commit
800dceaa0e
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue