Skip to content

Conversation

@staabm
Copy link

@staabm staabm commented Apr 20, 2020

In the past I lost my changes several times, because after typing in the wrong captcha and a site-reload I used the wrong button to submit the form.

Before this change a already typed comment would be lost easily when accidally pushing
one of the 'Subscribe' or 'Unsubscribe' buttons.

After this change a additional prompt will show up, when the comment-textarea is not empty at the time you click 'Subscribe' or 'Unsubscribe'.
When the textarea is empty no prompt is shown and everything works like before

Before this change a already typed comment would be lost easily when accidally pushing one of the 'Subscribe' or 'Unsubscribe' buttons.

After this change a additional prompt will show up, when the comment-textarea is not empty at the time you click 'Subscribe' or 'Unsubscribe'.
When the textarea is empty no prompt is shown and everything works like before
<td class="form-input">
<input type="submit" name="subscribe_to_bug" value="Subscribe">
<input type="submit" name="unsubscribe_to_bug" value="Unsubscribe">
<input type="submit" name="subscribe_to_bug" value="Subscribe" onclick="if (document.querySelector('[name=ncomment]').value.length) return confirm('You will lose your typed comment, when subscribe. proceed?');">
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am open for improvements to this message

@staabm
Copy link
Author

staabm commented Feb 26, 2021

any input on this UX improvement?

its really frustrating to loose all typend content when clicking the 'wrong button' by mistake

@peterdd
Copy link
Contributor

peterdd commented Oct 21, 2021

I think the real problem is that the subscribe/unsubscribe buttons should not be in the "add comment" tab.

It happened to me too.

@cmb69
Copy link
Member

cmb69 commented Jul 20, 2024

Hmm, would this change still make sense given that the old bug tracker does no longer allow new reports?

@staabm staabm closed this Jul 20, 2024
@staabm staabm deleted the patch-2 branch July 20, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants