Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 47d886d

Browse files
authored
JS saved process example added
1 parent e2ce0a0 commit 47d886d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

processes/on-file-save.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
die('Sorry, not logged in.');
44
}
55
// Purpose: This file is run when a user saves a file, has $fileLoc and $fileName strings available to it
6-
// Langs: PHP only
6+
// Langs: PHP (tho can concat JS within $doNext string, see below)
77
// Example:
88
// $fh = fopen(dirname(__FILE__)."/../file-dir-access.log", 'a');
99
// fwrite($fh, "SAVE >>> ".date("D dS M Y h:i:sa").": ".$fileLoc."/".$fileName."\n");
@@ -51,3 +51,6 @@
5151
echo ";top.ICEcoder.message('Couldn\'t compile your LESS, error info below:\\n\\n".$e->getMessage()."');";
5252
}
5353
}
54+
55+
// If JS is needed, add within $doNext string below, eg $doNext .= ";alert('saved');";
56+
$doNext .= "";

0 commit comments

Comments
 (0)