Commit 2d5945e6d8f3b7529d27dfb73b52699549751272

Authored by ykxie
1 parent 748a1649

重新录制清空页面

Showing 1 changed file with 6 additions and 1 deletions
src/js/gb.js
... ... @@ -1897,21 +1897,26 @@ $(function() {
1897 1897 if (_thisNum == 0) {
1898 1898 for (var i = 0; i < treeLinkEditor.length; i++) {
1899 1899 if (treeLinkEditor[i].CodeMirrorRecord.getValue() != undefined) {
  1900 + ZTREE.showEdite({'treeNode': treeLinkEditor[i].file, 'replay': true});
1900 1901 treeLinkEditor[i].CodeMirrorRecord.setValue("");
1901 1902 }
1902 1903 }
1903 1904 } else if (_thisNum == 1) {
1904 1905 for (var i = 0; i < treeLinkEditor.length; i++) {
1905 1906 if (treeLinkEditor[i].CodeMirrorReplay.getValue() != undefined) {
  1907 + ZTREE.showEdite({'treeNode': treeLinkEditor[i].file, 'replay': true});
1906 1908 treeLinkEditor[i].CodeMirrorReplay.setValue("");
1907 1909 }
1908 1910 }
1909 1911 } else {
1910 1912 for (var i = 0; i < treeLinkEditor.length; i++) {
  1913 +
1911 1914 if (treeLinkEditor[i].CodeMirrorRecord.getValue() != undefined) {
  1915 + ZTREE.showEdite({'treeNode': treeLinkEditor[i].file, 'replay': true});
1912 1916 treeLinkEditor[i].CodeMirrorRecord.setValue("");
1913 1917 }
1914 1918 if (treeLinkEditor[i].CodeMirrorReplay.getValue() != undefined) {
  1919 + ZTREE.showEdite({'treeNode': treeLinkEditor[i].file, 'replay': true});
1915 1920 treeLinkEditor[i].CodeMirrorReplay.setValue("");
1916 1921 }
1917 1922 }
... ... @@ -2046,7 +2051,7 @@ $(function() {
2046 2051 if (seconds == 2) {
2047 2052 $("#countdown").hide();
2048 2053 startReacoder();
2049   - GBCodePlayBack.resetCodeMirrorValue(0);
  2054 + GBCodePlayBack.resetCodeMirrorValue();
2050 2055 compileResult(resultData);
2051 2056 }
2052 2057 }, 1000);
... ...