MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dermova/public_html/me/wp-content/plugins/youtube-embed-plus/scripts/ytprefs-bar.js
(function ($) {
    $(document).ready(function () {
        $('#wp-admin-bar-ytprefs-bar-cache a').click(function (e) {

            var loading = document.createElement('img');
            loading.src = _EPYTA_.pluginurl + 'images/ajax-loader-dark.gif';
            loading.id = 'ytprefs-bar-cache-loading';
            $(this).append(loading);

            var postData = {
                action: 'my_embedplus_clearspdc'
            };
            $.post(_EPYTA_.ajaxurl, postData, function (response) {
                responsej = JSON.parse(response);
                if (responsej.type == 'success')
                {
                    alert('The YouTube cache has been cleared successfully.');
                }
            })
                    .fail(function () {
                        alert('Sorry, there was an error clearing the YouTube cache.');
                    })
                    .always(function () {
                        $('#ytprefs-bar-cache-loading').remove();
                        return false;
                    });

            return false;
        });
    });
})(jQuery);