Merge "Ignore non-checkbox fields for page saving dialog"

This commit is contained in:
jenkins-bot 2020-08-10 18:04:44 +00:00 committed by Gerrit Code Review
commit 7d3be3f3a6

View file

@ -121,6 +121,13 @@
accesskey = null,
title = null;
// Non-checkbox fields are permitted in the 'checkboxes' definitions (since MW
// core 4fa7d4d7), but VE doesn't yet support them.
// @TODO Remove this and properly support watchlist expiry and other widgets.
if ( options.class !== undefined && options.class !== 'OOUI\\CheckboxInputWidget' ) {
return;
}
// The messages documented below are just the ones defined in core.
// Extensions may add other checkboxes.
if ( options.tooltip ) {