From 7bbd125bd0eb56fd53824af187e5dc8036f3d499 Mon Sep 17 00:00:00 2001 From: Tina Quach Date: Mon, 29 Aug 2016 10:22:27 -0700 Subject: [PATCH] changed tab ordering and export selector buttons (#605) --- demos/blocklyfactory/app_controller.js | 8 ++++---- demos/blocklyfactory/index.html | 11 ++++++----- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/demos/blocklyfactory/app_controller.js b/demos/blocklyfactory/app_controller.js index 2a6301cbf..31f1a8f39 100644 --- a/demos/blocklyfactory/app_controller.js +++ b/demos/blocklyfactory/app_controller.js @@ -398,16 +398,16 @@ AppController.prototype.assignExporterClickHandlers = function() { document.getElementById('dropdownDiv_setBlocks').classList.remove("show"); }); - document.getElementById('dropdown_clearSelected').addEventListener('click', + document.getElementById('dropdown_addAllFromLib').addEventListener('click', function() { - self.exporter.clearSelectedBlocks(); + self.exporter.selectAllBlocks(); self.exporter.updatePreview(); document.getElementById('dropdownDiv_setBlocks').classList.remove("show"); }); - document.getElementById('dropdown_addAllFromLib').addEventListener('click', + document.getElementById('clearSelectedButton').addEventListener('click', function() { - self.exporter.selectAllBlocks(); + self.exporter.clearSelectedBlocks(); self.exporter.updatePreview(); document.getElementById('dropdownDiv_setBlocks').classList.remove("show"); }); diff --git a/demos/blocklyfactory/index.html b/demos/blocklyfactory/index.html index b002b4061..2a0139e2b 100644 --- a/demos/blocklyfactory/index.html +++ b/demos/blocklyfactory/index.html @@ -50,8 +50,8 @@
Block Factory
-
Workspace Factory
Block Exporter
+
Workspace Factory
@@ -63,13 +63,14 @@

Block Selector

+