behigh / redmine_timelog_timer

A simple javascript timer for timelog form
Other
30 stars 21 forks source link

please add 'type="button"' to Start/Stop button #12

Open amkir opened 11 years ago

amkir commented 11 years ago

Hello!

Your plugin adds to some forms. Default type of button is 'submit'. When user press ENTER in the form, the first form's element of type 'submit' is activated. In case of your pligin it will be your button, so user by pressing ENTER gets start/stop timer action instead of expected complete form and submit it to the server.

Changing it to avoided this problem.

Thank you!