openLastFiles triggering & cursor error catching

openLastFiles function now triggered from:
init (this is for reloads of the browser) and
refreshFileManager (for logins)
Also now only changing cursor if we have iFrames in DOM
This commit is contained in:
Matt Pass
2012-07-25 17:43:35 +01:00
parent b75118b4c2
commit 4eb6ffc618

View File

@@ -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.');
}