When link dialogues were being initialised they were triggering a click on the cancel button which was closing the dialogue. Moved to the appropriate location which fixes #1392.
When link dialogues were being initialised they were triggering a click on the cancel button which was closing the dialogue. Moved to the appropriate location which fixes #1392.

chrise86/refinerycms,bricesanchez/refinerycms,gwagener/refinerycms,anitagraham/refinerycms,LytayTOUCH/refinerycms,kappiah/refinerycms,hoopla-software/refinerycms,kappiah/refinerycms,refinery/refinerycms,mkaplan9/refinerycms,johanb/refinerycms,sideci-sample/sideci-sample-refinerycms,gwagener/refinerycms,louim/refinerycms,anitagraham/refinerycms,simi/refinerycms,mkaplan9/refinerycms,mkaplan9/refinerycms,trevornez/refinerycms,KingLemuel/refinerycms,refinery/refinerycms,simi/refinerycms,gwagener/refinerycms,louim/refinerycms,mabras/refinerycms,trevornez/refinerycms,simi/refinerycms,bryanmtl/g-refinerycms,kelkoo-services/refinerycms,LytayTOUCH/refinerycms,johanb/refinerycms,SmartMedia/refinerycms-with-custom-icons,KingLemuel/refinerycms,kappiah/refinerycms,bryanmtl/g-refinerycms,hoopla-software/refinerycms,LytayTOUCH/refinerycms,stefanspicer/refinerycms,Retimont/refinerycms,mojarra/myrefinerycms,kelkoo-services/refinerycms,simi/refinerycms,Eric-Guo/refinerycms,chrise86/refinerycms,bricesanchez/refinerycms,mojarra/myrefinerycms,stefanspicer/refinerycms,mabras/refinerycms,stefanspicer/refinerycms,hoopla-software/refinerycms,aguzubiaga/refinerycms,mlinfoot/refinerycms,johanb/refinerycms,Retimont/refinerycms,mabras/refinerycms,trevornez/refinerycms,mobilityhouse/refinerycms,SmartMedia/refinerycms-with-custom-icons,refinery/refinerycms,aguzubiaga/refinerycms,sideci-sample/sideci-sample-refinerycms,mobilityhouse/refinerycms,anitagraham/refinerycms,mlinfoot/refinerycms,aguzubiaga/refinerycms,mlinfoot/refinerycms,chrise86/refinerycms,Eric-Guo/refinerycms,KingLemuel/refinerycms,Eric-Guo/refinerycms,Retimont/refinerycms