Server IP : 162.0.217.223 / Your IP : 216.73.216.112 Web Server : LiteSpeed System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : mypckeys ( 1539) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mypckeys/backup/msckey.com/wp-content/plugins/woo-wallet/assets/js/admin/ |
Upload File : |
/* global terawallet_admin_params */ jQuery(function ($) { var $wallet_screen = $('.toplevel_page_woo-wallet'), $title_action = $wallet_screen.find('.wrap h2:first'); $title_action.html($title_action.html() + ' <a href="' + terawallet_admin_params.export_url + '" class="page-title-action">' + terawallet_admin_params.export_title + '</a>'); $('.lock-unlock-user-wallet').on('click', function(){ var self = $(this); var data = { action : 'lock_unlock_terawallet', user_id: $(this).data('user_id'), type: $(this).data('type'), security : terawallet_admin_params.lock_unlock_nonce }; $.post(terawallet_admin_params.ajax_url, data, function(response){ if('lock' === response.data.type){ self.find('span').removeClass('dashicons-unlock'); self.find('span').addClass('dashicons-lock'); self.find('label').text(response.data.text); self.data('type', response.data.type); } else{ self.find('span').removeClass('dashicons-lock'); self.find('span').addClass('dashicons-unlock'); self.find('label').text(response.data.text); self.data('type', response.data.type); } }); }); });