Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
yoooo it’s v0.11.8 —🌝
Browse files Browse the repository at this point in the history
  • Loading branch information
1000hz committed Dec 8, 2016
1 parent 7004d07 commit 1186f32
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 15 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Changelog
=========
### 0.11.8
* Properly updating the submit button state when you run `.validator(‘update’)`. (#461)
* Clearing errors on fields with `data-validate="false"` upon calling `.validator('update')`. (#387)

### 0.11.7
* Skip auto-validation of fields with errors that were set before plugin init. (#401)
* Fixing non-multiple select validation, which accidentally broke in the last release. (#453)
Expand Down
13 changes: 9 additions & 4 deletions dist/validator.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Validator v0.11.7 for Bootstrap 3, by @1000hz
* Validator v0.11.8 for Bootstrap 3, by @1000hz
* Copyright 2016 Cina Saffary
* Licensed under http://opensource.org/licenses/MIT
*
Expand Down Expand Up @@ -48,10 +48,9 @@
}).trigger('focusout')

this.$element.attr('novalidate', true) // disable automatic native validation
this.toggleSubmit()
}

Validator.VERSION = '0.11.7'
Validator.VERSION = '0.11.8'

Validator.INPUT_SELECTOR = ':input:not([type="hidden"], [type="submit"], [type="reset"], button)'

Expand Down Expand Up @@ -91,9 +90,15 @@
}

Validator.prototype.update = function () {
var self = this

this.$inputs = this.$element.find(Validator.INPUT_SELECTOR)
.add(this.$element.find('[data-validate="true"]'))
.not(this.$element.find('[data-validate="false"]'))
.not(this.$element.find('[data-validate="false"]')
.each(function () { self.clearErrors($(this)) })
)

this.toggleSubmit()

return this
}
Expand Down
4 changes: 2 additions & 2 deletions dist/validator.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions docs/dist/validator.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Validator v0.11.7 for Bootstrap 3, by @1000hz
* Validator v0.11.8 for Bootstrap 3, by @1000hz
* Copyright 2016 Cina Saffary
* Licensed under http://opensource.org/licenses/MIT
*
Expand Down Expand Up @@ -48,10 +48,9 @@
}).trigger('focusout')

this.$element.attr('novalidate', true) // disable automatic native validation
this.toggleSubmit()
}

Validator.VERSION = '0.11.7'
Validator.VERSION = '0.11.8'

Validator.INPUT_SELECTOR = ':input:not([type="hidden"], [type="submit"], [type="reset"], button)'

Expand Down Expand Up @@ -91,9 +90,15 @@
}

Validator.prototype.update = function () {
var self = this

this.$inputs = this.$element.find(Validator.INPUT_SELECTOR)
.add(this.$element.find('[data-validate="true"]'))
.not(this.$element.find('[data-validate="false"]'))
.not(this.$element.find('[data-validate="false"]')
.each(function () { self.clearErrors($(this)) })
)

this.toggleSubmit()

return this
}
Expand Down
Loading

0 comments on commit 1186f32

Please sign in to comment.