onBeforeTaskChanged callback with a confirm

Hi,

In the gantt I’ve used the onBeforeTaskChanged callback to show a dhtmlx.confirm popup to the
user asking to confirm a task move action.

How can I get the onBeforeTaskChanged to wait on the response from the dhtmlx.confirm ?

Currently it’s returning “false” on showing the popup and the move action is immediately un-done.

thanks
Kevin

Unfortunately, you can’t do so with dhtmlx.confirm.

Only native javascript confirm can pause execution. When you are using any js confirm dialog, it will not be able to pause execution, as necessary in your case.