Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ Template.productImageGallery.onRendered(function () {
Template.productImageGallery.events({
"mouseenter .gallery > li": function (event) {
event.stopImmediatePropagation();
// This is a workaround for an issue with FF refiring mouseover when the contents change
if (event.relatedTarget === null) {
return undefined;
}
if (!ReactionCore.hasPermission("createProduct")) {
let first = $(".gallery li:nth-child(1)");
let target = $(event.currentTarget);
Expand All @@ -140,6 +144,7 @@ Template.productImageGallery.events({
});
}
}
return undefined;
},
"click .remove-image": function () {
const mediaId = this._id;
Expand Down