Skip to content

Commit

Permalink
Fix dynamic tooltips.
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilFraser committed Oct 23, 2017
1 parent 367cf4c commit b18a7da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions appengine/bird/js/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ Blockly.Blocks['bird_compare'] = {
this.setTooltip(function() {
var op = thisBlock.getFieldValue('OP');
var TOOLTIPS = {
LT: Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LT,
GT: Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GT
'LT': Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LT,
'GT': Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GT
};
return TOOLTIPS[op];
});
Expand Down
12 changes: 6 additions & 6 deletions appengine/js/js-blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ Blockly.Blocks['logic_compare'].init = function() {
this.setTooltip(function() {
var op = thisBlock.getFieldValue('OP');
var TOOLTIPS = {
EQ: Blockly.Msg.LOGIC_COMPARE_TOOLTIP_EQ,
NEQ: Blockly.Msg.LOGIC_COMPARE_TOOLTIP_NEQ,
LT: Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LT,
LTE: Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LTE,
GT: Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GT,
GTE: Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GTE
'EQ': Blockly.Msg.LOGIC_COMPARE_TOOLTIP_EQ,
'NEQ': Blockly.Msg.LOGIC_COMPARE_TOOLTIP_NEQ,
'LT': Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LT,
'LTE': Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LTE,
'GT': Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GT,
'GTE': Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GTE
};
return TOOLTIPS[op];
});
Expand Down

0 comments on commit b18a7da

Please sign in to comment.