Component specific dialog listeners in AEM 6.4/6.5
Hello All,
Is there a way to have component specific dialog listeners ? I have a clientlibrary created with categories cq.authoring.dialog and a function on save of dialog. This however gets invoked on every dialog save. How could i make it component specific?
Usecase would be i want to validate if the droptarget has an image set
$(document).on("click", ".cq-dialog-submit", function (e) {
alert("hello !on submit");
});