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