PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/bettingbin.com/wp-content/plugins/feedzy-rss-feeds/js/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/bettingbin.com/wp-content/plugins/feedzy-rss-feeds/js/categories.js

/* global feedzy, ajaxurl */
/* jshint unused:false */
(function($) {
    
    $(document).ready(function(){
        init();
    });

    function init(){
        // listen to the validate button
        $('button.validate-category').on('click', function(e){
            e.preventDefault();
            var button = $(this);
            button.html(feedzy.l10n.validating);
            $.ajax({
                url: ajaxurl,
                method: 'POST',
                data: {
                    action: 'feedzy_categories',
                    _action: 'validate_clean',
                    security: feedzy.ajax.security,
                    id: button.attr('data-category-id')
                },
                success: function(data){
                    button.html(feedzy.l10n.validated.replace('#', data.data.invalid));
                },
                complete: function(){
                    setTimeout(function(){
                        button.html(feedzy.l10n.validate);
                    }, 5000 );
                }
            });
        });
    }

})(jQuery, feedzy);