From 2bb419e92f8874cdc1186e8f9cfe75c175136d6d Mon Sep 17 00:00:00 2001 From: vedanshujain Date: Fri, 5 Feb 2021 12:35:40 +0530 Subject: [PATCH] Fix eslint errors. --- assets/js/admin/meta-boxes-product-variation.js | 3 ++- assets/js/admin/quick-edit.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/js/admin/meta-boxes-product-variation.js b/assets/js/admin/meta-boxes-product-variation.js index a157be435c6..55ac9327559 100644 --- a/assets/js/admin/meta-boxes-product-variation.js +++ b/assets/js/admin/meta-boxes-product-variation.js @@ -301,7 +301,8 @@ jQuery( function( $ ) { .get( 'selection' ).first().toJSON(), url = attachment.sizes && attachment.sizes.thumbnail ? attachment.sizes.thumbnail.url : attachment.url; - $( '.upload_image_id', wc_meta_boxes_product_variations_media.setting_variation_image ).val( attachment.id ).trigger( 'change' ); + $( '.upload_image_id', wc_meta_boxes_product_variations_media.setting_variation_image ).val( attachment.id ) + .trigger( 'change' ); wc_meta_boxes_product_variations_media.setting_variation_image.find( '.upload_image_button' ).addClass( 'remove' ); wc_meta_boxes_product_variations_media.setting_variation_image.find( 'img' ).eq( 0 ).attr( 'src', url ); diff --git a/assets/js/admin/quick-edit.js b/assets/js/admin/quick-edit.js index 9562ab9e610..8c64a049f33 100644 --- a/assets/js/admin/quick-edit.js +++ b/assets/js/admin/quick-edit.js @@ -45,7 +45,8 @@ jQuery( $( 'input[name="_height"]', '.inline-edit-row' ).val( height ); $( 'select[name="_shipping_class"] option:selected', '.inline-edit-row' ).attr( 'selected', false ).trigger( 'change' ); - $( 'select[name="_shipping_class"] option[value="' + shipping_class + '"]' ).attr( 'selected', 'selected' ).trigger( 'change' ); + $( 'select[name="_shipping_class"] option[value="' + shipping_class + '"]' ).attr( 'selected', 'selected' ) + .trigger( 'change' ); $( 'input[name="_stock"]', '.inline-edit-row' ).val( stock ); $( 'input[name="menu_order"]', '.inline-edit-row' ).val( menu_order );