mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
removed unneeded download buttons and alert (#547)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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…</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>
|
||||
|
||||
Reference in New Issue
Block a user