|
|
|
@ -32,9 +32,13 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
|
|
|
|
|
return BI.extend(BI.BubblePopupBarView.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
extraCls: "bi-bubble-bar-popup-view", |
|
|
|
|
buttons: [{ |
|
|
|
|
value: BI.i18nText("BI-Basic_Cancel"), |
|
|
|
|
value: false, |
|
|
|
|
text: BI.i18nText("BI-Basic_Cancel"), |
|
|
|
|
ghost: true |
|
|
|
|
}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}] |
|
|
|
|
}, { |
|
|
|
|
text: BI.i18nText(BI.i18nText("BI-Basic_Sure")), |
|
|
|
|
value: true |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
_init: function () { |
|
|
|
@ -124,7 +128,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.button", |
|
|
|
|
height: 24, |
|
|
|
|
handler: function (v) { |
|
|
|
|
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, v); |
|
|
|
|
self.fireEvent(BI.TextBubblePopupBarView.EVENT_CHANGE, v); |
|
|
|
|
} |
|
|
|
|
}, buttonOpt); |
|
|
|
|
|
|
|
|
@ -151,5 +155,5 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
|
|
|
|
|
this.text.setText(v || this.options.text); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.TextBubblePopupBarView.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
BI.TextBubblePopupBarView.EVENT_CHANGE = "EVENT_CLICK_TOOLBAR_BUTTON"; |
|
|
|
|
BI.shortcut("bi.text_bubble_bar_popup_view", BI.TextBubblePopupBarView); |
|
|
|
|