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:
Ed Sanders 2013-05-03 13:15:54 +01:00
parent d4d8e9075d
commit 9dc93451c4

View file

@ -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();