mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-02 23:03:59 +01:00
If we have no fileLoc, show /
This covers saving new files/save as in the root
This commit is contained in:
@@ -405,7 +405,7 @@ if (action=="save") {
|
||||
if (strpos($file,"[NEW]")>0||$saveType=="saveAs") {
|
||||
?>
|
||||
fileLoc = '<?php echo $fileLoc;?>';
|
||||
newFileName = top.ICEcoder.getInput('Enter filename to save at '+fileLoc,'');
|
||||
newFileName = top.ICEcoder.getInput('Enter filename to save at '+(fileLoc!='' ? fileLoc : '/'),'');
|
||||
if (newFileName) {
|
||||
if (newFileName.substr(0,1)!="/") {newFileName = "/" + newFileName}
|
||||
newFileName = fileLoc + newFileName;
|
||||
|
||||
Reference in New Issue
Block a user