Skip to content

Commit 368b029

Browse files
committed
Fix #32 not working on links since #29
1 parent 5bf56a6 commit 368b029

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ http://mistic100.github.io/Bootstrap-Confirmation
1515
- Bootstrap 3 compatible
1616
- Fix double event fires
1717
- Automatic handle of links (without need of custom callback)
18+
- Allow to define custom buttons

bootstrap-confirmation.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
this.init(element, options);
2020
};
2121

22-
Confirmation.VERSION = '2.3.0';
22+
Confirmation.VERSION = '2.3.1';
2323

2424
Confirmation.DEFAULTS = $.extend({}, $.fn.popover.Constructor.DEFAULTS, {
2525
placement: 'top',
@@ -165,7 +165,6 @@
165165
](content);
166166

167167
$tip.on('click', function(e) {
168-
e.preventDefault();
169168
e.stopPropagation();
170169
});
171170

bootstrap-confirmation.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bootstrap-confirmation2",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"homepage": "http://mistic100.github.io/Bootstrap-Confirmation",
55
"description": "Bootstrap plugin for on-place confirm boxes using Popover",
66
"authors": [

example/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ <h1>Bootstrap Confirmation</h1>
2727
</div>
2828
</div>
2929

30+
<div class="panel panel-default">
31+
<div class="panel-heading">Link</div>
32+
<div class="panel-body">
33+
<a class="btn btn-default" data-toggle="confirmation" href="https://google.com">Confirmation</a>
34+
</div>
35+
</div>
36+
3037
<div class="panel panel-default">
3138
<div class="panel-heading">Customize</div>
3239
<div class="panel-body">

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bootstrap-confirmation2",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"homepage": "http://mistic100.github.io/Bootstrap-Confirmation",
55
"description": "Bootstrap plugin for on-place confirm boxes using Popover",
66
"authors": [

0 commit comments

Comments
 (0)