Skip to content

Commit

Permalink
fix aftervalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrozjlc committed Jun 10, 2016
1 parent 6cfab41 commit 441b1ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/disable-submit-buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

This comment has been minimized.

Copy link
@Faryshta

Faryshta Jun 13, 2016

Member

¿esta linea para que? básicamente dice que si una validación pasa se rehabilita el botón de enviar.

This comment has been minimized.

Copy link
@ayrozjlc

ayrozjlc via email Jun 14, 2016

Author
$(':input[type="submit"]', this).removeAttr('disabled');
$(':input[type="submit"][data-disabled-text]', this).each(function (i) {
var $this = $(this)
Expand Down

0 comments on commit 441b1ff

Please sign in to comment.