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 .
- $(function() {
- $( "#dialog:ui-dialog" ).dialog( "destroy" );
- $( "#revocation" ).dialog({
- autoOpen: false,
- height: 200,
- width: 460,
- modal: true,
- buttons:{
- "Yes": function() {
- revocation();
- },
- "Close" : function() {
- $( this ).dialog( "close" );
- }
- }
- });
- });
-
- function revocation(){
- $.ajax({
- type: "POST",
- url: "/member/revocation/",
- data: "confirm_item=" + $("#exchange_id").val(),
- error: function(){
- $( "#msg_404_block" ).dialog( "open" );
- return false;
- }
- }).done(function( msg ) {
- if(msg != "success")
- {
-
- return false;
- }
- else
- {
-
- }
- });
- }
-
- function openRevocationDialog(the_id){
- $.ajax({
- type: "POST",
- url: "/member/revocation/",
- data: "exchange_id=" + the_id
- }).done(function( msg ) {
- $("#revocation").html();
- $("#revocation").html(msg);
- });
- $("#revocation").dialog("open");
- }