Help me.....

Help me.....

dear you ,  I have problems to help people .......
I would like to add the following code : when i click button "yes" created can be two or more file name revocation in one click "yes" , or to click on the "yes" has the timeout , I'm not good at English, I apologize to everyone please please help me solve this difficulty. thank you .
  1.  $(function() {
  2.     $( "#dialog:ui-dialog" ).dialog( "destroy" );
  3.     $( "#revocation" ).dialog({
  4.       autoOpen: false,
  5.       height: 200,
  6.       width: 460,
  7.       modal: true,
  8.       buttons:{
  9.         "Yes": function() {
  10.           revocation();
  11.         },
  12.         "Close" : function() {
  13.           $( this ).dialog( "close" );
  14.         }
  15.       }
  16.     });
  17.   });

  18.   function revocation(){
  19.     $.ajax({
  20.       type: "POST",
  21.       url: "/member/revocation/",
  22.       data: "confirm_item=" + $("#exchange_id").val(),
  23.       error: function(){
  24.         $( "#msg_404_block" ).dialog( "open" );
  25.         return false;
  26.       }
  27.     }).done(function( msg ) {
  28.       if(msg != "success")
  29.       {
  30.         
  31.         return false;
  32.       }
  33.       else
  34.       {
  35.       
  36.       }
  37.     });
  38.   }

  39.   function openRevocationDialog(the_id){
  40.     $.ajax({
  41.       type: "POST",
  42.       url: "/member/revocation/",
  43.       data: "exchange_id=" + the_id
  44.     }).done(function( msg ) {
  45.       $("#revocation").html();
  46.       $("#revocation").html(msg);
  47.     });
  48.     $("#revocation").dialog("open");
  49.   }