From 441b1ff3572a1c2d74ab66c6732b4143fdd67cff Mon Sep 17 00:00:00 2001 From: Jose Lopez Date: Fri, 10 Jun 2016 14:22:52 -0500 Subject: [PATCH] fix aftervalidate --- js/disable-submit-buttons.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/disable-submit-buttons.js b/js/disable-submit-buttons.js index b3ac928..d51cc81 100644 --- a/js/disable-submit-buttons.js +++ b/js/disable-submit-buttons.js @@ -11,7 +11,7 @@ $('body').on('beforeValidate', 'form.disable-submit-buttons', function (e) { } }); }).on('afterValidate', 'form.disable-submit-buttons', function (e) { - if ($(this).find('.has-error').length > 0) { + if ($(this).find('.has-error').length > 0 || $(this).find('.has-success').length > 0) { $(':input[type="submit"]', this).removeAttr('disabled'); $(':input[type="submit"][data-disabled-text]', this).each(function (i) { var $this = $(this)