You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on my program when I hit the "x" icon to clear data a dialog will appear asking the user if she/he wants to clear the data. how do i prevent the clearing of data when the dialog is active incase the user wants to cancel.
here's my code:
$('#mae_mic').on('select2:unselecting', function(e) {
var sel = $("#mae_mic option:selected").val(); //getting the value of an option
BootstrapDialog.show({
title: 'Removing Mechanic in-charge Record',
type: 'type-primary',
message: 'Do you want to remove this in-charge?',
buttons: [{
label: ' Yes',
icon: 'glyphicon glyphicon-ok',
cssClass: 'btn-primary',
action: function(dialog) {
dialog.close();
return true;
}
},
{
label: ' No',
icon: 'glyphicon glyphicon-remove',
cssClass: 'btn-danger',
action: function(dialog) {
e.preventDefault();
dialog.close();
}
}]
});
});
thanks in advance guys. hope I can find answer here!
The text was updated successfully, but these errors were encountered:
$('#mae_mic').on('select2:unselecting', function(e) {
var sel = $("#mae_mic option:selected").val(); //getting the value of an option
BootstrapDialog.show({
title: 'Removing Mechanic in-charge Record',
type: 'type-primary',
message: 'Do you want to remove this in-charge?',
buttons: [{
label: ' Yes',
icon: 'glyphicon glyphicon-ok',
cssClass: 'btn-primary',
action: function(dialog) {
dialog.close();
return true;
}
},
{
label: ' No',
icon: 'glyphicon glyphicon-remove',
cssClass: 'btn-danger',
action: function(dialog) {
e.preventDefault();
dialog.close();
}
}]
});
});
Actually I manage to answer my own question. I figure this out but not with the bootstrap dialog but the native dialog javascript. but if you can integrate with this is more helpful to us. thanks
on my program when I hit the "x" icon to clear data a dialog will appear asking the user if she/he wants to clear the data. how do i prevent the clearing of data when the dialog is active incase the user wants to cancel.
here's my code:
thanks in advance guys. hope I can find answer here!
The text was updated successfully, but these errors were encountered: