-
Notifications
You must be signed in to change notification settings - Fork 0
/
personalizado.js
12 lines (11 loc) · 944 Bytes
/
personalizado.js
1
2
3
4
5
6
7
8
9
10
11
12
$(document).ready(function(){
$('a[data-confirm]').click(function(ev){
var href = $(this).attr('href');
if(!$('#confirm-delete').length){
$('body').append('<div class="modal fade" id="confirm-delete" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-header bg-danger text-white">EXCLUIR ITEM<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></div><div class="modal-body">Tem certeza de que deseja excluir o item selecionado?</div><div class="modal-footer"><button type="button" class="btn btn-success" data-dismiss="modal">Cancelar</button><a class="btn btn-danger text-white" id="dataComfirmOK">Excluir</a></div></div></div></div>');
}
$('#dataComfirmOK').attr('href', href);
$('#confirm-delete').modal({show: true});
return false;
});
});