So by refactoring a bit
public/Backoffice/assets/js/spryker-zed-category-image-main.js I managed to achieve some functionality Ι wanted. Βut this is not the correct way, since this file is the build one and as I see its not tracked by git, as expected. I need to find out how to build that Js for the public directory. Any hint pls ? Apparently there must be a docker/sdk command npm run. frontend
npmrun I think. Still trying to figure out which file to edit that will re-build that Js file
public/Backoffice/assets/js/spryker-zed-category-image-main.js for me ? The proper command for that as well.
/**
* Register global event listeners
*/
$('body').on('click', '.add-another-image-collection', addAnotherImageCollection).on('click', '.remove-image-collection', deleteImageCollection);
/**
* @param event
*/
$('.add-another-image-set').click();