Skip to content

Commit

Permalink
Merge pull request sonata-project#2009 from kluevandrew/patch-1
Browse files Browse the repository at this point in the history
Fix bootrstrap popover for select2 field
  • Loading branch information
rande committed Apr 1, 2014
2 parents 832af3a + 8b8fdf5 commit 557c47c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Resources/public/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,14 @@ var Admin = {
}

var target = input,
fieldShortDescription = input.closest('.field-container').find('.field-short-description')
;

fieldShortDescription = input.closest('.field-container').find('.field-short-description'),
select2 = input.closest('.select2-container')
;

if (fieldShortDescription.length) {
target = fieldShortDescription;
} else if (select2.length) {
target= select2;
}

target.popover({
Expand Down

0 comments on commit 557c47c

Please sign in to comment.