mirror of
https://github.com/google/blockly.git
synced 2026-01-06 16:40:07 +01:00
Add option to delete all blocks on workspace.
This commit is contained in:
@@ -515,7 +515,7 @@ Code.runJS = function() {
|
||||
Code.discard = function() {
|
||||
var count = Code.workspace.getAllBlocks().length;
|
||||
if (count < 2 ||
|
||||
window.confirm(MSG['discard'].replace('%1', count))) {
|
||||
window.confirm(Blockly.Msg.DELETE_ALL_BLOCKS.replace('%1', count))) {
|
||||
Code.workspace.clear();
|
||||
window.location.hash = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user