Skip to content

Commit

Permalink
Fix #32 not working on links since #29
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Jun 26, 2016
1 parent 5bf56a6 commit 368b029
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ http://mistic100.github.io/Bootstrap-Confirmation
- Bootstrap 3 compatible
- Fix double event fires
- Automatic handle of links (without need of custom callback)
- Allow to define custom buttons
3 changes: 1 addition & 2 deletions bootstrap-confirmation.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
this.init(element, options);
};

Confirmation.VERSION = '2.3.0';
Confirmation.VERSION = '2.3.1';

Confirmation.DEFAULTS = $.extend({}, $.fn.popover.Constructor.DEFAULTS, {
placement: 'top',
Expand Down Expand Up @@ -165,7 +165,6 @@
](content);

$tip.on('click', function(e) {
e.preventDefault();
e.stopPropagation();
});

Expand Down
4 changes: 2 additions & 2 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 bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-confirmation2",
"version": "2.3.0",
"version": "2.3.1",
"homepage": "http://mistic100.github.io/Bootstrap-Confirmation",
"description": "Bootstrap plugin for on-place confirm boxes using Popover",
"authors": [
Expand Down
7 changes: 7 additions & 0 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ <h1>Bootstrap Confirmation</h1>
</div>
</div>

<div class="panel panel-default">
<div class="panel-heading">Link</div>
<div class="panel-body">
<a class="btn btn-default" data-toggle="confirmation" href="https://google.com">Confirmation</a>
</div>
</div>

<div class="panel panel-default">
<div class="panel-heading">Customize</div>
<div class="panel-body">
Expand Down
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.3.0",
"version": "2.3.1",
"homepage": "http://mistic100.github.io/Bootstrap-Confirmation",
"description": "Bootstrap plugin for on-place confirm boxes using Popover",
"authors": [
Expand Down

0 comments on commit 368b029

Please sign in to comment.