Files
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

17 lines
591 B
JavaScript

(function( $ ) {
// Add Color Picker to all inputs that have 'color-field' class
$(function() {
$('.color-field').wpColorPicker();
});
$('.remove_image_button').click(function() {
var answer = confirm('Are you sure?');
if (answer == true) {
$(this).parents('.bl-img-show').find('.bl-image-preview').attr('src', '');
$(this).parents('.bl-img-show').find('.bl_image_attachment_id').val('');
$(this).parents('.image-preview-wrapper').removeClass('bl-img-show');
}
return false;
});
})( jQuery );