jasimcse / fsnet

Automatically exported from code.google.com/p/fsnet
0 stars 0 forks source link

I receive twice the message with double click #157

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I send a e-mail to my own address
2.I write a message
3.when we make a double click in the "Envoyer" 

What is the expected output? What do you see instead?
I receive twice the e-mail

What version of the product are you using? On what operating system?
on ubuntu with the version (0.3.0) of the product.

Please provide any additional information below.

Original issue reported on code.google.com by juku...@hotmail.fr on 1 Mar 2010 at 10:12

Attachments:

GoogleCodeExporter commented 9 years ago
To work around this issue, we could prevent the user to send many messages in a 
time 
(5 seconds for example).

Another solution is to add an arbitrary value in the session scope when the 
user ask 
to display the « send message » page, next when he click on « send message 
» button 
if the value is present in the session scope it is removed (and the message 
sent), 
if it is not present an error message is displayed.

Original comment by mat.boni...@gmail.com on 2 Mar 2010 at 12:48

GoogleCodeExporter commented 9 years ago
Or just disable the button on the click with javascript ?

Original comment by proucell...@gmail.com on 2 Mar 2010 at 3:50

GoogleCodeExporter commented 9 years ago
Ok, this is a good solution i think :-)

Original comment by mat.boni...@gmail.com on 2 Mar 2010 at 4:11

GoogleCodeExporter commented 9 years ago
Done for messages, one must use the same solution on every submit buttons on the
whole site.... 

Original comment by proucell...@gmail.com on 2 Mar 2010 at 4:45