Browse Source

save cdb scripts on every change

trethaller 4 years ago
parent
commit
2757a051e2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      hide/comp/cdb/ScriptTable.hx

+ 1 - 0
hide/comp/cdb/ScriptTable.hx

@@ -59,6 +59,7 @@ class ScriptTable extends SubTable {
 		]);
 		]);
 		script = new ScriptEditor(cell.value, checker, div);
 		script = new ScriptEditor(cell.value, checker, div);
 		script.onSave = saveValue;
 		script.onSave = saveValue;
+		script.onChanged = saveValue;
 		script.propagateKeys = true;
 		script.propagateKeys = true;
 		script.onClose = function() { close(); cell.focus(); }
 		script.onClose = function() { close(); cell.focus(); }
 		lines = [new Line(this,[],0,script.element)];
 		lines = [new Line(this,[],0,script.element)];