Follow-up I5636e744: Only set noeditsection class for no edit checkbox

Change-Id: I0994b38bdfaff2dfb4238e60e44764b7c6fd5c42
This commit is contained in:
Alex Monk 2015-02-25 02:37:15 +00:00
parent 1960cc7406
commit 9611f50fbd

View file

@ -109,7 +109,8 @@ ve.ui.MWSettingsPage = function VeUiMWSettingsPage( name, config ) {
{
metaName: 'mwNoEditSection',
label: ve.msg( 'visualeditor-dialog-meta-settings-noeditsection-label' ),
help: ve.msg( 'visualeditor-dialog-meta-settings-noeditsection-help' )
help: ve.msg( 'visualeditor-dialog-meta-settings-noeditsection-help' ),
classes: [ 've-test-page-settings-noeditsection' ]
}
].concat( ve.ui.MWSettingsPage.static.extraMetaCheckboxes );
@ -140,7 +141,7 @@ ve.ui.MWSettingsPage = function VeUiMWSettingsPage( name, config ) {
new OO.ui.CheckboxInputWidget( { $: settingsPage.$ } ),
{
$: settingsPage.$,
classes: [ 've-test-page-settings-noeditsection' ],
classes: this.classes,
align: 'inline',
label: this.label,
help: this.help || ''