diff --git a/lib/coder.js b/lib/coder.js index 54610c6..70a3125 100644 --- a/lib/coder.js +++ b/lib/coder.js @@ -51,6 +51,7 @@ var ICEcoder = { if (login) { top.document.getElementById('accountLogin').style.top = "-50px"; setTimeout(function() {top.document.getElementById('accountLoginContainer').style.display = "none";},300); + if (top.openLastFiles) {top.ICEcoder.autoOpenFiles()}; } else { top.document.getElementsByName('loginPassword')[0].focus(); } @@ -1160,7 +1161,9 @@ var ICEcoder = { cursorName = "auto"; } if (top.ICEcoder.content.contentWindow.document && top.ICEcoder.filesFrame.contentWindow) { - top.document.body.style.cursor = top.ICEcoder.content.contentWindow.document.body.style.cursor = top.ICEcoder.filesFrame.contentWindow.document.body.style.cursor = cursorName; + top.document.body.style.cursor = cursorName; + if (top.ICEcoder.content.contentWindow.document.body) {top.ICEcoder.content.contentWindow.document.body.style.cursor = cursorName}; + if (top.ICEcoder.filesFrame.contentWindow.document.body) {top.ICEcoder.filesFrame.contentWindow.document.body.style.cursor = cursorName}; } } }, @@ -1495,6 +1498,7 @@ var ICEcoder = { } top.document.getElementById('accountLogin').style.top = "-50px"; setTimeout(function() {top.document.getElementById('accountLoginContainer').style.display = "none";},300); + if (top.openLastFiles) {top.ICEcoder.autoOpenFiles()}; } else { top.ICEcoder.message('Sorry, that\'s not correct.'); }