Merge "Don't show tab preference dialog again if it's already been shown"

This commit is contained in:
jenkins-bot 2016-05-20 08:32:09 +00:00 committed by Gerrit Code Review
commit c21229c20a
2 changed files with 2 additions and 0 deletions

View file

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

View file

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