mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Update code after code review
This commit is contained in:
parent
6b47bc2252
commit
444230c62d
1 changed files with 3 additions and 5 deletions
|
|
@ -84,7 +84,8 @@ $.fn.extend({
|
|||
},
|
||||
});
|
||||
|
||||
const handleClickMainImage = function handleClickMainImage(e) {
|
||||
const mainImage = $('a.ui.fluid.image > img');
|
||||
mainImage.click((e) => {
|
||||
e.preventDefault();
|
||||
|
||||
const mainImageSrcExploded = e.target.src.split('/');
|
||||
|
|
@ -96,7 +97,4 @@ const handleClickMainImage = function handleClickMainImage(e) {
|
|||
element.click();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
const mainImage = $('a.ui.fluid.image > img');
|
||||
mainImage.click(handleClickMainImage);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue