MediaWiki:AFC-submit-wizard.js: Difference between revisions

Content deleted Content added
m tweak capitalisation to match project's template naming convention
change url param from title to page, as the former is used by the system
Line 114:
items: [
ui.titleLayout = new OO.ui.FieldLayout(ui.titleInput = new mw.widgets.TitleInputWidget({
value: (mw.util.getParamValue('titlepage') || '').replace(/_/g, ' '),
placeholder: msg('title-placeholder'),
}), {
Line 235:
ui.titleInput.on('change', mw.util.debounce(config.debounceDelay, onDraftInputChange));
 
if (mw.util.getParamValue('titlepage')) {
onDraftInputChange();
}