HEX
Server: Apache
System: Linux p3plzcpnl505785.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: xuvi7odgswsg (6947073)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/xuvi7odgswsg/public_html/wp-content/plugins/foogallery/js/foogallery.admin.template.js
jQuery(document).ready(function($) {
    //append a message to the metabox header.
    var $metabox_heading = $('#foogallery_template .hndle'),
        message = $('.foogallery-template-card-selector').data('metabox-message'),
        $message = $('<div class="foogallery-gallery-template-metabox-message">' + message + '</div>');

    $message.appendTo( $metabox_heading );
    
    // Handle template card selection
    $(".foogallery-template-card").on("click", function() {
        var $card = $(this);
        var template = $card.data("template");
        
        // Update visual selection
        $(".foogallery-template-card").removeClass("selected");
        $card.addClass("selected");
        
        // Update hidden input
        $("#FooGallerySettings_GalleryTemplate").val(template);

        FOOGALLERY.galleryTemplateChanged(true);
    });
});