lastOpenedFiles handling on no files

CLEAR now sent through as value if no files
No need for else clause now
This commit is contained in:
Matt Pass
2012-06-01 08:24:44 +01:00
parent 6752b8ef50
commit 5703a040be

View File

@@ -1404,13 +1404,9 @@ var ICEcoder = {
if (i<top.ICEcoder.openFiles.length-1) {lastOpenedFiles += ","};
}
}
if (lastOpenedFiles!="") {
// Then send through to the settings page to update setting
top.ICEcoder.serverQueue("add","lib/settings.php?saveFiles="+lastOpenedFiles);
} else {
top.ICEcoder.serverMessage();
top.ICEcoder.serverQueue("del",0);
}
if (lastOpenedFiles=="") {lastOpenedFiles="CLEAR"};
// Then send through to the settings page to update setting
top.ICEcoder.serverQueue("add","lib/settings.php?saveFiles="+lastOpenedFiles);
},
// Opens the last files we had open