Fix variable assignment

Without the `var` prefix this was making
`$submitButton` a global variable, which is not
what the code intended.
This commit is contained in:
Tom Byers
2019-09-04 11:46:18 +01:00
parent 9967f29ca6
commit 9d8fcf34fc

View File

@@ -4,7 +4,7 @@
let disableSubmitButtons = function(event) {
$submitButton = $(this).find(':submit');
var $submitButton = $(this).find(':submit');
if ($submitButton.data('clicked') == 'true') {