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 | }); |