mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
CTRL+o can now get remote URL
You can enter an absolute URL path (ie, anything that has :// in it) and it will trigger a different function to get the remote URL by sending that action to the server queue
This commit is contained in:
@@ -609,11 +609,19 @@ var ICEcoder = {
|
||||
openPrompt: function() {
|
||||
var fileLink;
|
||||
|
||||
if(fileLink = top.ICEcoder.getInput('Enter relative file path prefixed with /','')) {
|
||||
top.ICEcoder.openFile(fileLink);
|
||||
if(fileLink = top.ICEcoder.getInput('Enter relative file path (prefixed with /) or remote URL','')) {
|
||||
fileLink.indexOf("://")>-1
|
||||
? top.ICEcoder.getRemoteFile(fileLink)
|
||||
: top.ICEcoder.openFile(fileLink);
|
||||
}
|
||||
},
|
||||
|
||||
// Get remote file contents
|
||||
getRemoteFile: function(remoteFile) {
|
||||
top.ICEcoder.serverQueue("add","lib/file-control.php?action=getRemoteFile&file="+remoteFile);
|
||||
top.ICEcoder.serverMessage('<b>Getting</b><br>'+remoteFile);
|
||||
},
|
||||
|
||||
// Save a file
|
||||
saveFile: function(saveAs) {
|
||||
var saveType;
|
||||
|
||||
Reference in New Issue
Block a user