mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-30 20:27:30 -04:00
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:
@@ -4,7 +4,7 @@
|
||||
|
||||
let disableSubmitButtons = function(event) {
|
||||
|
||||
$submitButton = $(this).find(':submit');
|
||||
var $submitButton = $(this).find(':submit');
|
||||
|
||||
if ($submitButton.data('clicked') == 'true') {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user