PluginProbe ʕ •ᴥ•ʔ
Gallery : FooGallery / 3.3.2
Gallery : FooGallery v3.3.2
3.3.2 3.3.3 3.3.0 3.1.31 3.1.32 3.1.34 3.1.36 3.2.0 3.2.6 trunk 1.10.3 2.0.24 2.1.34 2.2.44 2.3.3 2.4.32 3.0.6 3.1.11 3.1.12 3.1.13 3.1.20 3.1.25 3.1.26 3.1.26.1 3.1.26.2
foogallery / js / foogallery.admin.template.js
foogallery / js Last commit date
admin-foogallery-attachment-autosave.js 1 day ago admin-foogallery-divi.js 1 day ago admin-foogallery-edit.js 1 day ago admin-foogallery-editor.js 1 day ago admin-foogallery-elementor.js 1 day ago admin-page-foogallery-extensions-modal.js 1 day ago admin-page-foogallery-extensions.js 1 day ago admin-page-foogallery-settings.js 1 day ago admin-tinymce.js 1 day ago admin-uploader.js 1 day ago foogallery-command-palette.js 1 day ago foogallery.admin.datasources.js 1 day ago foogallery.admin.min.js 1 day ago foogallery.admin.template.js 1 day ago
foogallery.admin.template.js
23 lines
1 jQuery(document).ready(function($) {
2 //append a message to the metabox header.
3 var $metabox_heading = $('#foogallery_template .hndle'),
4 message = $('.foogallery-template-card-selector').data('metabox-message'),
5 $message = $('<div class="foogallery-gallery-template-metabox-message">' + message + '</div>');
6
7 $message.appendTo( $metabox_heading );
8
9 // Handle template card selection
10 $(".foogallery-template-card").on("click", function() {
11 var $card = $(this);
12 var template = $card.data("template");
13
14 // Update visual selection
15 $(".foogallery-template-card").removeClass("selected");
16 $card.addClass("selected");
17
18 // Update hidden input
19 $("#FooGallerySettings_GalleryTemplate").val(template);
20
21 FOOGALLERY.galleryTemplateChanged(true);
22 });
23 });