浏览代码

save cdb scripts on every change

trethaller 4 年之前
父节点
当前提交
2757a051e2
共有 1 个文件被更改,包括 1 次插入0 次删除
  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.onSave = saveValue;
+		script.onChanged = saveValue;
 		script.propagateKeys = true;
 		script.onClose = function() { close(); cell.focus(); }
 		lines = [new Line(this,[],0,script.element)];