Index: lams_tool_images/web/includes/javascript/imageGalleryitem.js =================================================================== diff -u -r616336eff87580ecb6f13770899bc9af7eff4fa8 -r29fac4bd0bdf28bcaaeee7aae4020ccb15b6e520 --- lams_tool_images/web/includes/javascript/imageGalleryitem.js (.../imageGalleryitem.js) (revision 616336eff87580ecb6f13770899bc9af7eff4fa8) +++ lams_tool_images/web/includes/javascript/imageGalleryitem.js (.../imageGalleryitem.js) (revision 29fac4bd0bdf28bcaaeee7aae4020ccb15b6e520) @@ -25,20 +25,26 @@ } function cancelImageGalleryItem(){ - window.top.hideMessage(); + window.hidenMessage ? window.hideMessage() : window.top.hideMessage(); } /** * Launches the popup window for the instruction files */ function showMessage(url) { - var area=window.top.document.getElementById("reourceInputArea"); + var area=window.document.getElementById("reourceInputArea"); + var elem = window.document.getElementById("saveCancelButtons"); + if (!area) { + area = window.top.document.getElementById("reourceInputArea"); + elem = window.top.document.getElementById("saveCancelButtons"); + } + if(area != null){ area.style.width="650px"; area.style.height="100%"; area.src=url; area.style.display="block"; } - var elem = window.top.document.getElementById("saveCancelButtons"); + if (elem != null) { elem.style.display="none"; }