mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Edit source tab should be 'selected' when... selected
VE recreates the tab from scratch and deletes the old one so as not to copy over access key settings. This fix copies over classes from the old tab. Bug: 47452 Change-Id: Ic2d42bb3034be25f388b587a00c3f523cfcc163c
This commit is contained in:
parent
d4d8e9075d
commit
9dc93451c4
|
@ -784,6 +784,8 @@ ve.init.mw.ViewPageTarget.prototype.setupSkinTabs = function () {
|
|||
ve.msg( 'accesskey-ca-editsource' ),
|
||||
caVeEditNextnode
|
||||
);
|
||||
// Copy over classes (e.g. 'selected')
|
||||
$( caVeEditSource ).addClass( $caEdit.attr( 'class' ) );
|
||||
|
||||
// Create "Edit" tab.
|
||||
$caEdit.remove();
|
||||
|
|
Loading…
Reference in a new issue