I know this is an old thread, anyway… a wrapper functions works nicely:
var app = { } // use your own namespace
app.confirm = function(m, cb) {
dhtmlx.message({
type:"confirm",
text: m,
callback: function(r){ if (r) cb() }
});
}
Then call it:
app.confirm("Sure you want to do this?", function(){
// Ok logic here
alert('Ok was pushed')
})
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan