repaints the lighbox for the task according to its type
|the task type
The method repaints the lightbox and if possible saves all the input. For rebuilding the structure, the method uses the configuration for the specified type.
If the type of the lightbox is the same as the type in the parameter, the method does not repaint the lightbox.