Skip to content

Commit

Permalink
#1002: Put tooltip/popover on bottom if there is not enough space on …
Browse files Browse the repository at this point in the history
…top, thanks to @jazzzz
  • Loading branch information
nghuuphuoc committed Oct 21, 2014
1 parent c2d57df commit 1fe1bf5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ __New Features__

__Improvements__
* [#823](https://github.com/nghuuphuoc/bootstrapvalidator/issues/823): The [hexColor](http://bootstrapvalidator.com/validators/hexColor/) validator only accepts 6 hex character values when using HTML 5 ```type='color'``` attribute
* [#1002](https://github.com/nghuuphuoc/bootstrapvalidator/pull/1002): Put tooltip/popover on bottom if there is not enough space on top, thanks to [@jazzzz](https://github.com/jazzzz)

__Bug Fixes__
* [#933](https://github.com/nghuuphuoc/bootstrapvalidator/issues/933), [#959](https://github.com/nghuuphuoc/bootstrapvalidator/issues/959): Tooltip/popover isn't destroyed when the field is valid
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ I would like to give big thanks to the following contributors:
* [@i0](https://github.com/i0)
* [@ikanedo](https://github.com/ikanedo)
* [@iplus](https://github.com/iplus)
* [@jazzzz](https://github.com/jazzzz)
* [@jcnmulio](https://github.com/jcnmulio)
* [@jjshoe](https://github.com/jjshoe)
* [@johanronn77](https://github.com/johanronn77)
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrapValidator.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* BootstrapValidator (http://bootstrapvalidator.com)
* The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
*
* @version v0.5.3-dev, built on 2014-10-20 4:14:15 PM
* @version v0.5.3-dev, built on 2014-10-21 8:12:33 AM
* @author https://twitter.com/nghuuphuoc
* @copyright (c) 2013 - 2014 Nguyen Huu Phuoc
* @license MIT
Expand Down
6 changes: 3 additions & 3 deletions dist/js/bootstrapValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* BootstrapValidator (http://bootstrapvalidator.com)
* The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
*
* @version v0.5.3-dev, built on 2014-10-20 4:14:15 PM
* @version v0.5.3-dev, built on 2014-10-21 8:12:33 AM
* @author https://twitter.com/nghuuphuoc
* @copyright (c) 2013 - 2014 Nguyen Huu Phuoc
* @license MIT
Expand Down Expand Up @@ -1081,7 +1081,7 @@ if (typeof jQuery === 'undefined') {
? $icon.css('cursor', 'pointer').tooltip('destroy').tooltip({
container: 'body',
html: true,
placement: 'top',
placement: 'auto top',
title: $allErrors.filter('[data-bv-result="' + that.STATUS_INVALID + '"]').eq(0).html()
})
: $icon.css('cursor', '').tooltip('destroy');
Expand All @@ -1093,7 +1093,7 @@ if (typeof jQuery === 'undefined') {
container: 'body',
content: $allErrors.filter('[data-bv-result="' + that.STATUS_INVALID + '"]').eq(0).html(),
html: true,
placement: 'top',
placement: 'auto top',
trigger: 'hover click'
})
: $icon.css('cursor', '').popover('destroy');
Expand Down
4 changes: 2 additions & 2 deletions dist/js/bootstrapValidator.min.js

Large diffs are not rendered by default.

0 comments on commit 1fe1bf5

Please sign in to comment.