Open modal for view details of task

Hi,
Do you know how to do this one? In task_private.php I send the attributes for but details.php page but how to open this in a modal window?

Solution:
In main JS file (will better if you copy&past whole function to JS file of your plugin and will change there) to find the function “redirectToTaskView” and replace:
window.location = taskUrl
to
KB.modal.open(url, 'medium', !1)
you can also replace the ‘medium’ size of window to ‘large’

I have tried in V1.2.19 but it doesn’t work,
Could you please share the complete js file?