Minor tweaks

This commit is contained in:
mattpass
2020-07-20 22:55:16 +01:00
parent e4a5215c7a
commit d1deb9313f
2 changed files with 5 additions and 4 deletions

View File

@@ -3449,14 +3449,15 @@ var ICEcoder = {
// Save as events need to send all contents
if (this.serverQueueItems[0].item.indexOf('action=saveAs')>0) {
xhr.send('timeStart='+timeStart+'&file='+this.serverQueueItems[0].file+'&contents='+encodeURIComponent(document.getElementById('saveTemp1').value));
// Save evens can just sent the changes
// Save events can just send the changes
} else if (this.serverQueueItems[0].item.indexOf('action=save')>0) {
xhr.send('timeStart='+timeStart+'&file='+this.serverQueueItems[0].file+'&changes='+encodeURIComponent(document.getElementById('saveTemp1').value));
// Another type of event
// Another type of event
} else {
xhr.send('timeStart='+timeStart+'&file='+this.serverQueueItems[0].file);
}
} else {
// File loading done via fileControl iFrame
setTimeout(function(ic) {
if ("undefined" != typeof ic.serverQueueItems[0]) {
ic.filesFrame.contentWindow.frames['fileControl'].location.href=ic.serverQueueItems[0].item;

View File

@@ -1,6 +1,6 @@
<?php
include("lib/headers.php");
include("lib/settings.php");
include "lib/headers.php";
include "lib/settings.php";
?>
<!DOCTYPE html>
<html lang="en">