Fixed dialog to not rely on jQuery enhancement, which happens on pagecreate. Fixed context menu crash that occurs when no 'this' object is supplied to open.