Skip to content

Commit

Permalink
[new_profile] Prevent duplication when button is clicked repetitively (
Browse files Browse the repository at this point in the history
…#4364)

Added safeguard for disabling button after first click while the request is being processed in the backend. this was copied from the next_stage change done a while back (see related PR #2358.)
  • Loading branch information
ridz1208 authored and driusan committed Mar 6, 2019
1 parent 34523f8 commit e872851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/new_profile/templates/form_new_profile.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
{/if}

<div class="form-group col-sm-12">
<div class="col-sm-12"><input class="btn btn-primary col-sm-offset-2 col-sm-2" name="fire_away" value="Create" type="submit" /></div>
<div class="col-sm-12"><input class="btn btn-primary col-sm-offset-2 col-sm-2" name="fire_away" value="Create" type="submit" onClick="this.form.submit(); this.disabled=true;"/></div>
</div>
</table>
{$form.hidden}
Expand Down

0 comments on commit e872851

Please # to comment.