Last modified: 2005-08-23 18:37:33 UTC
The trunk version of EditPage::editForm is currently a roughly 500-line function that builds the Edit page in all its various manifestations. Its large size and number of variations (preview, diff, new article, edit conflict, etc.) make it difficult to understand and improve. The function should be refactored so that the bulk of its code is handed off to auxiliary functions, and what remains is clear enough to follow the logic in building the edit form.
Created attachment 763 [details] Factored out confirmDelete()
Comment on attachment 763 [details] Factored out confirmDelete() Attachment 763 [details] has a bug. I will resubmit it.
Created attachment 764 [details] Factored out confirmDelete() Corrected version of earlier patch 763.
This function was recently refactored, so patch will probably not apply.