Add option to delete all blocks on workspace.

This commit is contained in:
Neil Fraser
2015-12-02 22:10:09 -08:00
parent 97e5e12d13
commit fa279b91ce
147 changed files with 194 additions and 99 deletions

View File

@@ -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 = '';
}