Changeset 2615363
- Timestamp:
- 10/17/2021 11:00:51 AM (4 years ago)
- Location:
- agy-verification/trunk
- Files:
-
- 4 edited
-
admin/assets/js/agy_admin_ajax.js (modified) (1 diff)
-
agy-verification.php (modified) (2 diffs)
-
includes/Agy_Dashboard.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
agy-verification/trunk/admin/assets/js/agy_admin_ajax.js
r2615058 r2615363 1 jQuery(document).ready(function ($) { 2 if ($('body').hasClass('wp-admin')) { 3 const getSubmitBtn = $('#agy-save-changes-btn'); 4 const getForm = $('#agy-form-submit'); 5 6 function agyAjaxDone(s) { 7 getSubmitBtn.attr('value', s) 8 } 9 10 function agyRestartAnimation() { 11 setTimeout(() => getSubmitBtn.attr('value', 'Save changes'), 3000); 12 } 13 14 function agyAjaxSubmit() { 15 let agyFormData = new FormData(this); 16 17 agyFormData.append('agy_save_changes_btn', 1); 18 agyFormData.append('security', agy_admin_ajax.ajax_publisher_name); 19 20 $.ajax({ 21 type: 'POST', 22 url: agy_admin_ajax.ajax_ajaxurl, 23 data: agyFormData, 24 processData: false, 25 contentType: false, 26 complete: function () { 27 agyAjaxDone('Saved') 28 agyRestartAnimation(); 29 }, 30 error: function () { 31 agyAjaxDone('Not saved. Please try again!'); 32 agyRestartAnimation(); 33 } 34 }); 35 36 return false; 37 } 38 39 getSubmitBtn.bind('click', () => getSubmitBtn.attr('value', 'Saving...')); 40 getForm.submit(agyAjaxSubmit); 41 } 42 }); 1 jQuery(document).ready(function(a){if(a("body").hasClass("wp-admin")){const n=a("#agy-save-changes-btn"),i=a("#agy-form-submit");function e(a){n.attr("value",a)}function t(){setTimeout(()=>n.attr("value","Save changes"),3e3)}n.bind("click",()=>n.attr("value","Saving...")),i.submit(function(){let n=new FormData(this);return n.append("agy_save_changes_btn",1),n.append("security",agy_admin_ajax.ajax_publisher_name),a.ajax({type:"POST",url:agy_admin_ajax.ajax_ajaxurl,data:n,processData:!1,contentType:!1,complete:function(){e("Saved"),t()},error:function(){e("Not saved. Please try again!"),t()}}),!1})}}); -
agy-verification/trunk/agy-verification.php
r2615058 r2615363 12 12 * Plugin URI: https://wordpress.org/plugins/agy-verification 13 13 * Description: Agy Verification is a powerful solution to add any kind of verification restriction on your website. Easy to setup, optimized for all devices, and modern design option to match your style. 14 * Version: 1.1. 214 * Version: 1.1.4 15 15 * Requires at least: 4.6 16 16 * Requires PHP: 7.1 … … 36 36 37 37 if ( ! defined( 'AGY_PLUGIN_VERSION' ) ) { 38 define( 'AGY_PLUGIN_VERSION', '1.1. 2' );38 define( 'AGY_PLUGIN_VERSION', '1.1.4' ); 39 39 } 40 40 -
agy-verification/trunk/includes/Agy_Dashboard.php
r2615046 r2615363 175 175 <span class="agy-version"><?php echo $this->agy_header_links( 'Give us 5 stars', 'https://wordpress.org/support/plugin/agy-verification/reviews/?filter=5#new-post', '_blank', 'agy-tablinks' ); ?></span> 176 176 <span class="agy-version"><?php echo $this->agy_header_links( 'Support', 'https://wordpress.org/support/plugin/agy-verification', '_blank', 'agy-tablinks' ); ?></span> 177 <span class="agy-version"> Version: <?php_e( AGY_PLUGIN_VERSION, 'agy' ) ?></span>177 <span class="agy-version"><?php _e('Version: ', 'agy') . _e( AGY_PLUGIN_VERSION, 'agy' ) ?></span> 178 178 </div> 179 179 -
agy-verification/trunk/readme.txt
r2615058 r2615363 6 6 Donate link: https://mlab-studio.com 7 7 Tested up to: 5.8 8 Stable tag: 1.1. 28 Stable tag: 1.1.4 9 9 License: GPL v3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.txt … … 17 17 This comes especially handy if your content or products are about CBD, alcohol, gambling, or some other adult content. 18 18 19 [vimeo https://vimeo.com/ 500408054]19 [vimeo https://vimeo.com/634297863] 20 20 21 21 == How to use ==
Note: See TracChangeset
for help on using the changeset viewer.