From 69aec81200842d722d01cf5bbc86004f1dd88322 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Tue, 1 Jul 2014 12:56:57 +0100 Subject: [PATCH] indicateChanges() on 4ms delay after a save To update the character in the browser tab --- lib/file-control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/file-control.php b/lib/file-control.php index b5a9ee3..6008e02 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -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 {