AUR web interface

Tasklist

FS#44967 - Confirmation when clicking flag-out-of-date

Attached to Project: AUR web interface
Opened by A (zyberkiddy) - Friday, 15 May 2015, 08:18 GMT
Last edited by Lukas Fleischer (lfleischer) - Saturday, 03 October 2015, 08:03 GMT
Task Type Feature Request
Category Backend
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity Low
Priority Normal
Reported Version 3.5.0
Due in Version 4.1.0
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

There seems to be a lot of accidental flag as out of date clicks in a AUR package page while trying to vote for a package. I also had such an incident. This can easily be avoided by having a confirmation box asking before flagging out of date.

For doing this just add the attribute onsubmit to the HTTP form for flagging out of date.

onsubmit="return confirm('Are you sure you want to flag this package as out of date?');"

The final HTML snippet would be

<form action="/pkgbase/package-name/flag/" method="post" onsubmit="return confirm('Are you sure you want to flag this package as out of date?');">
<input type="hidden" name="token" value="e858a7c013faac47817182cc9829f11c">
<input type="submit" class="button text-button" name="do_Flag" value="Flag package out-of-date">
</form>

Thanks.
This task depends upon

Closed by  Lukas Fleischer (lfleischer)
Saturday, 03 October 2015, 08:03 GMT
Reason for closing:  Implemented
Additional comments about closing:  Implemented in 4.1.0.
Comment by (Det) - Friday, 19 June 2015, 10:10 GMT
This should be handled by:  FS#42827  - "Flagging out-of-date package should require comments."

Loading...