Skip to content

Commit

Permalink
Use $element.confirmation('hide') instead of Tooltip.leave() for hidi…
Browse files Browse the repository at this point in the history
…ng popover with the "Cancel" button
  • Loading branch information
martin-g committed Aug 3, 2015
1 parent 6fbbbaa commit 5ac1219
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bootstrap-confirmation.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
.one('click', function(e) {
that.getOnConfirm.call(that).call(that.$element);
that.$element.trigger('confirmed.bs.confirmation');
that.leave(that);
that.$element.confirmation('hide');
});

// add href to confirm button if needed
Expand All @@ -169,7 +169,7 @@
.one('click', function(e) {
that.getOnCancel.call(that).call(that.$element);
that.$element.trigger('canceled.bs.confirmation');
that.leave(that);
that.$element.confirmation('hide');
});

$tip.removeClass('fade top bottom left right in');
Expand Down
6 changes: 3 additions & 3 deletions bootstrap-confirmation.min.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-confirmation2",
"version": "2.1.2",
"version": "2.1.3",
"homepage": "https://github.com/mistic100/Bootstrap-Confirmation",
"description": "Bootstrap plugin for on-place confirm boxes using Popover",
"authors": [
Expand Down

0 comments on commit 5ac1219

Please sign in to comment.