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