manusoftar

Untitled

Oct 21st, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.95 KB | None | 0 0
  1.     function showConfirm(msg){
  2.                    var clicked;
  3.                     $.when(showConfirm(msg,clicked)).done( function(){ return clicked; });      
  4.     }
  5.    
  6.    
  7.     function showConfirm(msg,val){
  8.                     msgBox.html(msg+"<br><br>");
  9.                     msgBox.dialog({
  10.                                      modal: true,
  11.                                      title: "SMON",
  12.                                      buttons: {
  13.                                          Aceptar: function(){
  14.                                              val=1;
  15.                                              $(this).dialog( "close" );
  16.                                          },
  17.                                          Cancelar: function(){
  18.                                              val=0;
  19.                                              $(this).dialog("close");
  20.                                          }
  21.                                    }
  22.                     });
  23.    
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment