|
|
@ -78,8 +78,10 @@ BI.SingleSelectSearchInsertPane = BI.inherit(BI.Widget, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setKeyword: function (keyword) { |
|
|
|
setKeyword: function (keyword) { |
|
|
|
var btn; |
|
|
|
var hasSameValue = BI.some(this.loader.getAllButtons(), function (idx, btn) { |
|
|
|
var isMatchTipVisible = this.loader.getAllButtons().length > 0 && (btn = this.loader.getAllButtons()[0]) && (keyword === btn.getValue()); |
|
|
|
return keyword === btn.getValue(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
var isMatchTipVisible = this.loader.getAllButtons().length > 0 && hasSameValue; |
|
|
|
this.tooltipClick.setVisible(isMatchTipVisible); |
|
|
|
this.tooltipClick.setVisible(isMatchTipVisible); |
|
|
|
this.addNotMatchTip.setVisible(!isMatchTipVisible); |
|
|
|
this.addNotMatchTip.setVisible(!isMatchTipVisible); |
|
|
|
!isMatchTipVisible && this.addNotMatchTip.setText(BI.i18nText("BI-Basic_Click_To_Add_Text", keyword)); |
|
|
|
!isMatchTipVisible && this.addNotMatchTip.setText(BI.i18nText("BI-Basic_Click_To_Add_Text", keyword)); |
|
|
|