Move ordinal in block 'text_getSubstring' (#1656)

On updating the block 'text_getSubstring', the ordinal string 'ORDINAL1' is moved when the corresponding corresponding input field is moved so that the ordinal string does not end up at the end of the block.
This commit is contained in:
zgtm
2018-02-26 19:44:01 +01:00
committed by Andrew n marshall
parent 39f39d8a2a
commit 14aa53e0fa

View File

@@ -313,6 +313,9 @@ Blockly.Blocks['text_getSubstring'] = {
.appendField(menu, 'WHERE' + n);
if (n == 1) {
this.moveInputBefore('AT1', 'AT2');
if (this.getInput('ORDINAL1')) {
this.moveInputBefore('ORDINAL1', 'AT2');
}
}
}
};