Plugin Directory

Changeset 3142364


Ignore:
Timestamp:
08/27/2024 03:04:56 PM (19 months ago)
Author:
databasebackup
Message:

admin.js

Location:
wp-database-backup/trunk/assets/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-database-backup/trunk/assets/js/wpdbbkp-admin-cron-backup.js

    r3142223 r3142364  
    2424            let wpdbbkp_offer_modal = $('#wpdbbkp_offer_modal').modal({backdrop: true, keyboard: true});
    2525            wpdbbkp_offer_modal.show();
    26         }
     26       
    2727        // When the user selects an option, set the cookie and hide the modal
    2828        document.getElementById("wpdbbkp_server_backup").addEventListener("click", function() {
     
    7878        });
    7979           
     80    }
    8081    });
    8182
  • wp-database-backup/trunk/assets/js/wpdbbkp-admin.js

    r3142223 r3142364  
    284284
    285285    jQuery("#create_backup").click(function(event) {
    286        if(bkpforwp_token_check()){
    287         return;
    288        }
     286       if(!bkpforwp_token_check()){
    289287        event.preventDefault();
    290288        let  wpdbbkp_offer_modal = jQuery('#wpdbbkp_offer_modal').modal({ keyboard: true , backdrop: 'true',});
     
    296294            jQuery("#backup_process").show();
    297295            jQuery("#create_backup").attr("disabled", true);
     296            window.location.href = jQuery("#create_backup").attr("href");
    298297        });
    299298
     
    328327           
    329328        });
     329       }
     330 
    330331
    331332    });
Note: See TracChangeset for help on using the changeset viewer.