Skip to content

Commit b261b7d

Browse files
author
minjk-bl
committed
Set initial code to Frame - subset page
1 parent df3e591 commit b261b7d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

js/m_apps/Frame.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,14 @@ define([
830830
}, 1);
831831
}
832832
});
833+
// initial code
834+
var code = this.subsetEditor.generateCode();
835+
that.subsetCm.setValue(code);
836+
that.subsetCm.save();
837+
setTimeout(function () {
838+
that.subsetCm.refresh();
839+
}, 1);
840+
833841
break;
834842
case FRAME_EDIT_TYPE.ADD_ROW:
835843
title = 'Add Row';
@@ -871,6 +879,14 @@ define([
871879
}, 1);
872880
}
873881
});
882+
// initial code
883+
var code = this.subsetEditor.generateCode();
884+
that.subsetCm.setValue(code);
885+
that.subsetCm.save();
886+
setTimeout(function () {
887+
that.subsetCm.refresh();
888+
}, 1);
889+
874890
break;
875891
case FRAME_EDIT_TYPE.AS_TYPE:
876892
title = 'Convert type';

0 commit comments

Comments
 (0)