Skip to content

Commit 76c03cf

Browse files
committed
Remove dev logging, goLocalhostRoot and ftpManager added
1 parent ae1188f commit 76c03cf

2 files changed

Lines changed: 87 additions & 76 deletions

File tree

lib/ice-coder.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ var ICEcoder = {
127127
? (top.ICEcoder.autoLogoutMins*60) - top.ICEcoder.autoLogoutTimer
128128
: 0;
129129
}
130-
console.log(top.ICEcoder.autoLogoutTimer);
131130
// If there aren't any unsaved files, we have a timeout period > 0 and the time is up, we can logout
132131
if(!unsavedFiles && ICEcoder.autoLogoutMins > 0 && top.ICEcoder.autoLogoutTimer >= top.ICEcoder.autoLogoutMins*60) {
133132
top.ICEcoder.logout('autoLogout');
@@ -2818,6 +2817,11 @@ var ICEcoder = {
28182817
top.ICEcoder.showHide('show',top.get('blackMask'));
28192818
},
28202819

2820+
// Go to localhost root
2821+
goLocalhostRoot: function() {
2822+
top.ICEcoder.filesFrame.contentWindow.frames['fileControl'].location.href = "lib/go-localhost-root.php";
2823+
},
2824+
28212825
// Show the GitHub commit screen
28222826
githubAction: function(action) {
28232827
top.get('mediaContainer').innerHTML = '<iframe src="lib/github.php?action='+action+'&selectedFiles='+top.ICEcoder.selectedFiles.join(";")+'&csrf='+top.ICEcoder.csrf+'" class="whiteGlow" style="width: 340px; height: 340px"></iframe>';
@@ -2864,6 +2868,12 @@ var ICEcoder = {
28642868
}
28652869
},
28662870

2871+
// Show the FTP manager
2872+
ftpManager: function() {
2873+
top.get('mediaContainer').innerHTML = '<iframe src="lib/ftp-manager.php" class="whiteGlow" style="width: 660px; height: 450px"></iframe>';
2874+
top.ICEcoder.showHide('show',top.get('blackMask'));
2875+
},
2876+
28672877
// Update the settings used when we make a change to them
28682878
useNewSettings: function(themeURL,codeAssist,lockedNav,tagWrapperCommand,autoComplete,visibleTabs,fontSize,lineWrapping,lineNumbers,showTrailingSpace,matchBrackets,autoCloseTags,autoCloseBrackets,indentWithTabs,indentAuto,indentSize,pluginPanelAligned,bugFilePaths,bugFileCheckTimer,bugFileMaxLines,githubAuthTokenSet,updateDiffOnSave,autoLogoutMins,refreshFM) {
28692879
var styleNode, thisCSS, strCSS, activeLineBG;

0 commit comments

Comments
 (0)