From bce6662eae1550adb17419b1a14c116ebcf7458b Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 15 Mar 2018 15:54:16 -0500 Subject: [PATCH] Fix autodisable button bug for forms marked as such --- tailbone/static/js/tailbone.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tailbone/static/js/tailbone.js b/tailbone/static/js/tailbone.js index 5de153fc..075b90ab 100644 --- a/tailbone/static/js/tailbone.js +++ b/tailbone/static/js/tailbone.js @@ -222,7 +222,9 @@ $(function() { $('a.button.autodisable').click(function() { disable_button(this); }); - $('form.autodisable').submit(disable_submit_button); + $('form.autodisable').submit(function() { + disable_submit_button(this); + }); /* * enhance dropdowns