plugin updates
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
});
|
||||
1
wp/wp-content/plugins/woocommerce/assets/js/frontend/account-i18n.min.js
vendored
Normal file
1
wp/wp-content/plugins/woocommerce/assets/js/frontend/account-i18n.min.js
vendored
Normal 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()})});
|
||||
@@ -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
Reference in New Issue
Block a user