You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
869 B
37 lines
869 B
var UIConfirmations = function () {
|
|
|
|
var handleSample = function () {
|
|
|
|
$('#bs_confirmation_demo_1').on('confirmed.bs.confirmation', function () {
|
|
alert('You confirmed action #1');
|
|
});
|
|
|
|
$('#bs_confirmation_demo_1').on('canceled.bs.confirmation', function () {
|
|
alert('You canceled action #1');
|
|
});
|
|
|
|
$('#bs_confirmation_demo_2').on('confirmed.bs.confirmation', function () {
|
|
alert('You confirmed action #2');
|
|
});
|
|
|
|
$('#bs_confirmation_demo_2').on('canceled.bs.confirmation', function () {
|
|
alert('You canceled action #2');
|
|
});
|
|
}
|
|
|
|
|
|
return {
|
|
//main function to initiate the module
|
|
init: function () {
|
|
|
|
handleSample();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}();
|
|
|
|
jQuery(document).ready(function() {
|
|
UIConfirmations.init();
|
|
});
|