Fixes for K2/Joomla modal dialogues