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

Dir : /home/trave494/live2news.com/wp-content/plugins/auto-post-thumbnail-pro/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/live2news.com/wp-content/plugins/auto-post-thumbnail-pro/js/admin-options.js

// Do the things when document is ready
jQuery(document).ready(function($)
{
    // Initialize needed variable
    var apt_media_frame;

    // Handle default featured image's selector's click
    $('#default_featured_image_selector').click(function(e)
    {
        // Open custom media frame if available
        if (apt_media_frame)
        {
            apt_media_frame.open();
            return;
        }

        // Clone default media manager
        apt_media_frame = wp.media.frames.apt_media_frame = wp.media({
            library: {
                type: 'image'
            }
        });

        // Handle media selection
        apt_media_frame.on('select', function()
        {
            var media_attachment = apt_media_frame.state().get('selection').first().toJSON();
            $('#default_featured_image').val(media_attachment.url);
            $('#default_featured_image').attr("data-changed","true");
        });

        // Open custom media frame
        apt_media_frame.open();
        return false;
    });
});