From 6885a88a829c6169c5227e339a1c81b551197862 Mon Sep 17 00:00:00 2001 From: Tina Quach Date: Mon, 15 Aug 2016 13:23:54 -0700 Subject: [PATCH] removed unneeded download buttons and alert (#547) --- demos/blocklyfactory/app_controller.js | 8 -------- demos/blocklyfactory/index.html | 16 ++-------------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/demos/blocklyfactory/app_controller.js b/demos/blocklyfactory/app_controller.js index 43f66bba6..275e375bc 100644 --- a/demos/blocklyfactory/app_controller.js +++ b/demos/blocklyfactory/app_controller.js @@ -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. diff --git a/demos/blocklyfactory/index.html b/demos/blocklyfactory/index.html index 86c2ef442..b1548698a 100644 --- a/demos/blocklyfactory/index.html +++ b/demos/blocklyfactory/index.html @@ -1,4 +1,4 @@ - + @@ -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); @@ -150,7 +146,7 @@