mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 23:43:54 +00:00
Merge "Make the help button a help link again"
This commit is contained in:
commit
61360d69ec
|
@ -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
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue