mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
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:
@@ -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.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user