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’