Plugin Directory

Changeset 2615363


Ignore:
Timestamp:
10/17/2021 11:00:51 AM (4 years ago)
Author:
upss1988
Message:

1.1.4

Location:
agy-verification/trunk
Files:
4 edited

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 });
     1jQuery(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  
    1212 * Plugin URI:        https://wordpress.org/plugins/agy-verification
    1313 * 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.2
     14 * Version:           1.1.4
    1515 * Requires at least: 4.6
    1616 * Requires PHP:      7.1
     
    3636
    3737            if ( ! defined( 'AGY_PLUGIN_VERSION' ) ) {
    38                 define( 'AGY_PLUGIN_VERSION', '1.1.2' );
     38                define( 'AGY_PLUGIN_VERSION', '1.1.4' );
    3939            }
    4040
  • agy-verification/trunk/includes/Agy_Dashboard.php

    r2615046 r2615363  
    175175                    <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>
    176176                    <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>
    178178                </div>
    179179
  • agy-verification/trunk/readme.txt

    r2615058 r2615363  
    66Donate link: https://mlab-studio.com
    77Tested up to: 5.8
    8 Stable tag: 1.1.2
     8Stable tag: 1.1.4
    99License: GPL v3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.txt
     
    1717This comes especially handy if your content or products are about CBD, alcohol, gambling, or some other adult content.
    1818
    19 [vimeo https://vimeo.com/500408054]
     19[vimeo https://vimeo.com/634297863]
    2020
    2121== How to use ==
Note: See TracChangeset for help on using the changeset viewer.