Last active
July 12, 2018 14:23
-
-
Save yuta17/786d9101b2a8d47e55fa4543c0eba70f to your computer and use it in GitHub Desktop.
Revisions
-
yuta17 revised this gist
Jul 12, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ $(function () { $('form').submit(function () { const form = $(this); if (form.hasClass('prevent-double-click')) { event.preventDefault(); } else { -
yuta17 revised this gist
Jun 7, 2018 . 1 changed file with 10 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ $(function () { $('form').submit(function () { var form = $(this); if (form.hasClass('prevent-double-click')) { event.preventDefault(); } else { form.addClass('prevent-double-click'); } }); }); -
yuta17 created this gist
Jun 7, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ $(function () { $('form').submit(function () { var form = $(this); if (form.hasClass('prevent-double-click')) { event.preventDefault(); } else { form.addClass('prevent-double-click'); } }); });