removed unneeded download buttons and alert (#547)

This commit is contained in:
Tina Quach
2016-08-15 13:23:54 -07:00
committed by picklesrus
parent 06f21f85e4
commit 6885a88a82
2 changed files with 2 additions and 22 deletions

View File

@@ -361,14 +361,6 @@ AppController.prototype.assignFactoryClickHandlers = function() {
open('https://developers.google.com/blockly/custom-blocks/block-factory',
'BlockFactoryHelp');
});
document.getElementById('downloadBlocks').addEventListener('click',
function() {
BlockFactory.downloadTextArea('blocks', 'languagePre');
});
document.getElementById('downloadGenerator').addEventListener('click',
function() {
BlockFactory.downloadTextArea('generator', 'generatorPre');
});
document.getElementById('files').addEventListener('change',
function() {
// Warn user.

View File

@@ -1,4 +1,4 @@
<!-- TODO(quacht): move the CSS out to a separate file -->
<!-- TODO(quachtina96): move the CSS out to a separate file -->
<!DOCTYPE html>
<html>
@@ -27,10 +27,6 @@
var init = function() {
blocklyFactory = new AppController();
blocklyFactory.init();
if (blocklyFactory.blockLibraryController.hasEmptyBlockLib()) {
alert('Your block library is empty! Click "Save to Block Library" so ' +
'you can reopen it the next time you visit Block Factory!');
}
};
window.addEventListener('load', init);
</script>
@@ -150,7 +146,7 @@
<img src="link.png" height="21" width="21">
</button>
<button id="createNewBlockButton" title="Create a new block.">
<span> Create New Block</span>
<span> Create Block</span>
</button>
<label for="files" class="buttonStyle">
<span class=>Import Block Library</span>
@@ -188,10 +184,6 @@
<option value="JavaScript">JavaScript</option>
<option value="Manual">Manual edit&hellip;</option>
</select>
<button class ="downloadButton" id="downloadBlocks"
title="Download block definition to a file.">
<span>Download</span>
</button>
</h3>
</td>
</tr>
@@ -211,10 +203,6 @@
<option value="Lua">Lua</option>
<option value="Dart">Dart</option>
</select>
<button id="downloadGenerator" class="downloadButton"
title="Downloadgenerator stub to a file.">
<span>Download</span>
</button>
</h3>
</td>
</tr>