Skip to content

Commit

Permalink
keeping ability for configurability
Browse files Browse the repository at this point in the history
  • Loading branch information
James Crisman committed Dec 14, 2016
1 parent 6a887af commit 3b193aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/ui/validation/adapter-bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
FORM_GROUP: '.form-group:first',
NAVBAR: 'navbar-fixed-top'
},
SELECTORS: {
CONTAINER: 'container-id'
},
CONTROLLER: '$avValContainerController'
});

Expand Down Expand Up @@ -41,7 +44,7 @@

var $el = $(element);

var targetId = attrs.containerId;
var targetId = attrs[attrs.$normalize(AV_BOOTSTRAP_ADAPTER.SELECTORS.CONTAINER)];

var target = targetId ? $('#' + targetId) : $el.siblings(selector);

Expand Down

0 comments on commit 3b193aa

Please sign in to comment.