Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Commit

Permalink
Added bower support
Browse files Browse the repository at this point in the history
  • Loading branch information
tavicu committed Apr 3, 2015
2 parents 3d2d19a + 7524093 commit 2e7c6a6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bootstrap-confirmation.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,4 +244,4 @@

return this;
}
}(jQuery);
}(jQuery);
21 changes: 13 additions & 8 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">

<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
Expand All @@ -31,16 +31,21 @@ <h1>With callback functions</h1>
</div>
</div>

<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="bootstrap-confirmation.js"></script>

<script>
$('[data-toggle="confirmation"]').confirmation();
$('.confirmation-callback').confirmation({
onConfirm: function() { alert('confirm') },
onCancel: function() { alert('cancel') }
$(function() {
$('body').confirmation({
selector: '[data-toggle="confirmation"]'
});

$('.confirmation-callback').confirmation({
onConfirm: function() { alert('confirm') },
onCancel: function() { alert('cancel') }
});
});
</script>
</body>
</html>
</html>

0 comments on commit 2e7c6a6

Please sign in to comment.