The dc_cancel method doesn’t return any value, so it is not possible to know which option the user selected (Ok, Cancel)…
I have changed this for the next version:
* @return {Number} 1:if user wants to cancel
* 0:if there is nothing to cancel (no edited records)/or cancel is called by find or required fields.
* -1:if the user doesn't want to cancel, or dc_cancel_pre doesn't allow to cancel