Page MenuHomePhabricator

Prevent double save on double click on "Save page" button
Closed, ResolvedPublic

Description

This feature request comes from Support desk:
https://www.mediawiki.org/w/index.php?title=Project:Support_desk&offset=20140702093821#hiding_.22Save_page.22_button_after_click_44929

When the user click twice (accidently) on "Save page" Button, prevent the creation of two new articles. Maybe using jQuery to disable save button (or remove them and add a loading circle).


Version: unspecified
Severity: enhancement

Details

Reference
bz67409

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:26 AM
bzimport set Reference to bz67409.

That URL doesn't work for me, but I think I get the problem. I assume this is only an issue when using the "one-step process", with an automatically-generated page name?

Oh, sorry, my fault :) Here the working link:
https://www.mediawiki.org/wiki/Thread:Project:Support_desk/hiding_%22Save_page%22_button_after_click

I can ask, if this is only using the one-step-process :)

Hello Yaron Koren!

There is a reply from the user:

Yes this is true, page names are automatically created (reference numbers).
using this:
{{{info|page name=REF<unique number;start=000001>}}}

I can try this.@Yaron_Koren can you please give me some micro-tasks to solve in this project.

Hi @Swayamsrk - thank you for your interest. This itself might be a microtask... the amount of code required to fix it might be very short - maybe just one or two lines of JavaScript.

Change 743547 had a related patch set uploaded (by Aklapper; author: Techwizzie):

[mediawiki/extensions/PageForms@master] one-step-process: Prevent excess page creation on multiple clicks

https://gerrit.wikimedia.org/r/743547

I believe this is fixed now, seven years later!