Commit inicial Ventas Productivo
This commit is contained in:
33
Metronic/assets/admin/pages/scripts/ui-confirmations.js
Normal file
33
Metronic/assets/admin/pages/scripts/ui-confirmations.js
Normal file
@@ -0,0 +1,33 @@
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}();
|
||||
Reference in New Issue
Block a user