Skip to content

Commit 16496b1

Browse files
committed
Few bug fixes for tooltip #9
1 parent af0ad59 commit 16496b1

File tree

7 files changed

+16
-9
lines changed

7 files changed

+16
-9
lines changed

dist/bootstrap-angular-validation-all.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bootstrap-angular-validation-core.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bootstrap-angular-validation-tooltip.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app.provider.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* global document */
2-
31
'use strict';
42

53
angular.module('bootstrap.angular.validation').provider('bsValidationConfig', function() {
@@ -24,6 +22,7 @@ angular.module('bootstrap.angular.validation').provider('bsValidationConfig', fu
2422
this.global.successClass = 'has-success';
2523
this.global.errorMessagePrefix = '';
2624
this.global.tooltipPlacement = 'bottom-left';
25+
this.global.tooltipAppendToBody = false;
2726

2827
this.global.setValidateFieldsOn = function(event) {
2928
if (!event) {
@@ -49,6 +48,7 @@ angular.module('bootstrap.angular.validation').provider('bsValidationConfig', fu
4948
return {
5049
errorClass: _this.global.errorClass,
5150
successClass: _this.global.successClass,
51+
tooltipAppendToBody: _this.global.tooltipAppendToBody,
5252

5353
getDisplayErrorsAs: function() {
5454
return displayErrorsAs;

src/directives/form.directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ angular.module('bootstrap.angular.validation').directive('form', [
8686
* Do not show validation errors once the form gets submitted. You can still display the
8787
* validation errors after form submission by calling '$setSubmitted' in your form controller.
8888
*/
89-
formController.$hideValidationState();
89+
formController.$hideValidation();
9090
});
9191

9292
/**

0 commit comments

Comments
 (0)