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