mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-13 00:50:27 +00:00
33 lines
829 B
JavaScript
33 lines
829 B
JavaScript
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();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}(); |