Skip to content

Commit 397caaf

Browse files
author
Matthew Matz
committed
download workspace instead of last saved version
1 parent 72e37e6 commit 397caaf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/webapp/WEB-INF/includes/pageparts/editor-menu.jsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@
7070
<hr style="line-height:5px; margin:5px;">
7171
<li><a id="clear-workspace" href="#"><fmt:message key="editor.clear-workspace" /></a></li>
7272
<hr style="line-height:5px; margin:5px;">
73+
<c:if test="${param.editor_lang == 'c'}">
7374
<li><a id="download-side" href="#" onclick="downloadPropC()">Download SimpleIDE files</a></li>
75+
</c:if>
7476
<li><a id="download-project" href="#"><fmt:message key="editor.download" /></a></li>
7577
<li><a id="upload-project" href="#"><fmt:message key="editor.upload" /></a></li>
7678
<hr style="line-height:5px; margin:5px;">

src/main/webapp/cdn/editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function hashCode(str) {
189189
};
190190

191191
function downloadCode() {
192-
var projXMLcode = projectData['code'];
192+
var projXMLcode = window.frames["content_blocks"].getXml(); //projectData['code'];
193193
projXMLcode = projXMLcode.substring(42,projXMLcode.length);
194194
projXMLcode = projXMLcode.substring(0,(projXMLcode.length - 6));
195195

0 commit comments

Comments
 (0)