Commit 77eccf1c authored by Conor Shipp's avatar Conor Shipp Committed by Evan W. Patton

Fix unbound variable dialog button

Fixes #1735
parent 5cde68c6
......@@ -52,7 +52,7 @@ function unboundVariableHandler(myBlock, yailText) {
}
form += "</form>";
var dialog = new Blockly.Util.Dialog(Blockly.Msg.DIALOG_UNBOUND_VAR, form, Blockly.Msg.DO_IT, false, Blockly.Msg.REPL_CANCEL, 10, function (button) {
if (button == Blockly.Msg.DIALOG_SUBMIT) {
if (button == Blockly.Msg.DO_IT) {
var code = "(let (";
for (var i in unbound_vars) {
code += '($' + unbound_vars[i] + ' ' + Blockly.Yail.quotifyForREPL(document.querySelector('input[name="' + unbound_vars[i] + '"]').value) + ') ';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment