indicateChanges() on 4ms delay after a save

To update the character in the browser tab
This commit is contained in:
Matt Pass
2014-07-01 12:56:57 +01:00
parent 9b55729c91
commit 69aec81200

View File

@@ -328,7 +328,7 @@ if ($_GET['action']=="save") {
// Do the pesticide plugin if it exists
try {top.ICEcoder.doPesticide();} catch(err) {};
};';
echo 'top.ICEcoder.setPreviousFiles();action="doneSave";';
echo 'top.ICEcoder.setPreviousFiles();setTimeout(function(){top.ICEcoder.indicateChanges()},4);action="doneSave";';
// Run our custom processes
include_once("../processes/on-file-save.php");
} else {