mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-12 19:46:47 +01:00
Rename tab only if it's a new name
If we have a new filename redo the tab, otherwise don't
This commit is contained in:
@@ -128,7 +128,9 @@ if ($_GET['action']=="save") {
|
||||
if ($fileLoc=="") {$fileLoc = "/";};
|
||||
echo '<script>top.ICEcoder.selectedFiles=[];top.ICEcoder.updateFileManagerList(\'add\',\''.$fileLoc.'\',\''.$fileName.'\')</script>';
|
||||
}
|
||||
echo '<script>top.ICEcoder.renameTab(top.ICEcoder.selectedTab,\''.$file.'\');</script>';
|
||||
if (isset($_POST['newFileName'])&&$_POST['newFileName']!="") {
|
||||
echo '<script>top.ICEcoder.renameTab(top.ICEcoder.selectedTab,\''.$file.'\');</script>';
|
||||
}
|
||||
echo '<script>action="doneSave";</script>';
|
||||
} else {
|
||||
echo '<script>alert(\'Sorry, you need to be logged in to save\');</script>';
|
||||
|
||||
Reference in New Issue
Block a user