Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function confirmar(titulo, subtitulo, sim, nao)
  2. {
  3.     var retorno = $.confirm({
  4.         theme: 'hololight',
  5.         title: titulo,
  6.         content: subtitulo,
  7.         buttons: {         
  8.             confirm: {
  9.                 text: 'Sim',
  10.                 btnClass: 'btn-blue',
  11.                 action: function(sim){
  12.                     sim();
  13.                 }
  14.             },
  15.             cancel: {
  16.                 text: 'Não',              
  17.                 action: function(nao){
  18.                     nao();
  19.                 }
  20.             }          
  21.         }
  22.     });
  23.  
  24.     return retorno;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement