plugin updates

This commit is contained in:
Tony Volpe
2024-07-16 13:57:46 +00:00
parent 41f50eacc4
commit 8f93917880
1529 changed files with 259452 additions and 25451 deletions

View File

@@ -0,0 +1,20 @@
/* global Cookies */
jQuery( function( $ ) {
// Select all elements with the class [role="alert"] attribute that contain text
var notices = $('[role="alert"]').filter(function() {
return $(this).text().trim().length > 0;
});
if (notices.length > 0) {
/**
* Queuing the focus event at last of the event queue
* to override any other focus events in case of critical error.
* For example, "Skip to content" was being focused just after
* the error, resulting in the voiceover breaking the message
* in between.
*/
setTimeout(function() {
$(notices[0]).attr('tabindex', '-1').focus();
});
}
});

View File

@@ -0,0 +1 @@
jQuery(function(t){var e=t('[role="alert"]').filter(function(){return t(this).text().trim().length>0});e.length>0&&setTimeout(function(){t(e[0]).attr("tabindex","-1").focus()})});

View File

@@ -668,7 +668,7 @@
var slideToImage = $gallery_nav.find( 'li img[src="' + variation.image.gallery_thumbnail_src + '"]' );
if ( slideToImage.length > 0 ) {
slideToImage.trigger( 'click' );
slideToImage.trigger( 'flexslider-click' );
$form.attr( 'current-image', variation.image_id );
window.setTimeout( function() {
$( window ).trigger( 'resize' );

File diff suppressed because one or more lines are too long