SharePoint 2010
I have a display form that has a task list webpart and a discussion list webpart.
The display form opens in a modal window.
When a task list item link is clicked, it opens in an additional modal window (desired).
However, when a discussion list item link is clicked, it opens as a standard page (not desired).
I've tried modifying the discussion item link to open as a modal window with javascript (SP.UI.ModalDialog.showModalDialog), but was not successful (nothing changed). I even changed the href to '#' in the when and otherwise clause, and still nothing changed.
I can modify other list item links without a problem, but the discussion one eludes me.
How can I get it to open in an additional modal window like the task list item described above?