Merge "Make the help button a help link again"

This commit is contained in:
jenkins-bot 2016-08-23 17:35:35 +00:00 committed by Gerrit Code Review
commit 61360d69ec

View file

@ -220,7 +220,7 @@
* current wikitext from. * current wikitext from.
*/ */
init: function ( $container, $editorTextbox, userConfig ) { init: function ( $container, $editorTextbox, userConfig ) {
var editHelpButtonWidget, relatedPage, var $helpLink, relatedPage,
config = userConfig; config = userConfig;
$textbox = $editorTextbox; $textbox = $editorTextbox;
@ -239,13 +239,13 @@
} ) } )
.toggle( false ); .toggle( false );
editHelpButtonWidget = new OO.ui.ButtonWidget( { $helpLink = $( '<a>' )
label: mw.msg( 'templatedata-helplink' ), .attr( {
classes: [ 'tdg-editscreen-main-helplink' ], href: mw.msg( 'templatedata-helplink-target' ),
href: mw.msg( 'templatedata-helplink-target' ), target: '_blank'
target: '_blank', } )
framed: false .addClass( 'tdg-editscreen-main-helplink' )
} ); .text( mw.msg( 'templatedata-helplink' ) );
// Dialog // Dialog
windowManager = new OO.ui.WindowManager(); windowManager = new OO.ui.WindowManager();
@ -297,7 +297,7 @@
.addClass( 'tdg-editscreen-main' ) .addClass( 'tdg-editscreen-main' )
.append( .append(
editOpenDialogButton.$element, editOpenDialogButton.$element,
editHelpButtonWidget.$element, $helpLink,
editNoticeLabel.$element editNoticeLabel.$element
) )
); );