mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Merge "Don't show tab preference dialog again if it's already been shown"
This commit is contained in:
commit
c21229c20a
|
@ -823,6 +823,7 @@
|
|||
|
||||
// Duplicate of this code in ve.init.mw.DesktopArticleTarget.js
|
||||
if ( $( '#ca-edit' ).hasClass( 'visualeditor-showtabdialog' ) ) {
|
||||
$( '#ca-edit' ).removeClass( 'visualeditor-showtabdialog' );
|
||||
// Set up a temporary window manager
|
||||
windowManager = new OO.ui.WindowManager();
|
||||
$( 'body' ).append( windowManager.$element );
|
||||
|
|
|
@ -266,6 +266,7 @@ ve.init.mw.DesktopArticleTarget.prototype.loadSuccess = function ( response ) {
|
|||
|
||||
// Duplicate of this code in ve.init.mw.DesktopArticleTarget.init.js
|
||||
if ( $( '#ca-edit' ).hasClass( 'visualeditor-showtabdialog' ) ) {
|
||||
$( '#ca-edit' ).removeClass( 'visualeditor-showtabdialog' );
|
||||
// Set up a temporary window manager
|
||||
windowManager = new OO.ui.WindowManager();
|
||||
$( 'body' ).append( windowManager.$element );
|
||||
|
|
Loading…
Reference in a new issue