Hi!
I have the following cq:editConfig file:
<?xml version="1.0" encoding="UTF-8"?><jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:primaryType="cq:EditConfig"><cq:listeners jcr:primaryType="cq:EditListenersConfig" afteredit="REFRESH_PAGE" beforeinsert="function (){ return OrderModule.prototype.checkCountBeforeAdd(); }" beforedelete="function (){ return OrderModule.prototype.checkCountBeforeRemove(); }" /></jcr:root>
'beforedelete' event is fired up ok, but 'beforeinsert' doesn't not fire up, 'beforechildinsert' neither.
Could you please direct me to the correct direction?
Thank you in advance.
Solved! Go to Solution.
Views
Replies
Total Likes
You need to install service pack & couple of hotfix. Please wait till sp3 or file a support request.
Views
Replies
Total Likes
Are you seeing any JS error, Did you tried adding a console log statement to confirm?
Views
Replies
Total Likes
You need to install service pack & couple of hotfix. Please wait till sp3 or file a support request.
Views
Replies
Total Likes
Thank you for your answer!
Yesm I have console.log() in checkCountBeforeAdd() function
checkCountBeforeAdd : function() {
console.log("checkCountBeforeAdd");
But I do not see any logs nor errors in console.
Views
Replies
Total Likes
Views
Likes
Replies