mirror of
https://github.com/google/blockly.git
synced 2026-01-06 08:30:13 +01:00
Cherrypick fixes made directly to master back into develop (#619)
* Check result of window.confirm before deleting variables. * Create CONTRIBUTING.md
This commit is contained in:
5
CONTRIBUTING.md
Normal file
5
CONTRIBUTING.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Contributing to Blockly
|
||||||
|
|
||||||
|
Please make pull requests against develop, not master. If your patch needs to go into master immediately, include a note in your PR.
|
||||||
|
|
||||||
|
For more information, head over to the [Blockly Developers site](https://developers.google.com/blockly/guides/modify/contributing).
|
||||||
@@ -322,9 +322,12 @@ Blockly.Workspace.prototype.deleteVariable = function(name) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
window.confirm(
|
var ok = window.confirm(
|
||||||
Blockly.Msg.DELETE_VARIABLE_CONFIRMATION.replace('%1', uses.length).
|
Blockly.Msg.DELETE_VARIABLE_CONFIRMATION.replace('%1', uses.length).
|
||||||
replace('%2', name));
|
replace('%2', name));
|
||||||
|
if (!ok) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Blockly.Events.setGroup(true);
|
Blockly.Events.setGroup(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user