mirror of
https://github.com/google/blockly.git
synced 2025-12-16 06:10:12 +01:00
Added hideChaff calls to the custom fields demo.
This commit is contained in:
committed by
Neil Fraser
parent
7a068f8521
commit
042ddb043b
@@ -113,6 +113,7 @@
|
||||
}
|
||||
|
||||
function toggleEditable() {
|
||||
Blockly.hideChaff();
|
||||
var blocks = workspace.getAllBlocks();
|
||||
for(var i = 0, block; block = blocks[i]; i++) {
|
||||
block.setEditable(!block.isEditable());
|
||||
@@ -120,6 +121,7 @@
|
||||
}
|
||||
|
||||
function toggleCollapsed() {
|
||||
Blockly.hideChaff();
|
||||
var blocks = workspace.getAllBlocks();
|
||||
for(var i = 0, block; block = blocks[i]; i++) {
|
||||
block.setCollapsed(!block.isCollapsed());
|
||||
|
||||
Reference in New Issue
Block a user