|
|
@ -32,8 +32,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, { |
|
|
|
this.clear = BI.createWidget({ |
|
|
|
this.clear = BI.createWidget({ |
|
|
|
type: "bi.icon_button", |
|
|
|
type: "bi.icon_button", |
|
|
|
stopEvent: true, |
|
|
|
stopEvent: true, |
|
|
|
cls: "close-font", |
|
|
|
cls: "close-font" |
|
|
|
invisible: !o.value |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
this.clear.on(BI.IconButton.EVENT_CHANGE, function () { |
|
|
|
this.clear.on(BI.IconButton.EVENT_CHANGE, function () { |
|
|
|
self.setValue(""); |
|
|
|
self.setValue(""); |
|
|
@ -124,6 +123,8 @@ BI.SearchEditor = BI.inherit(BI.Widget, { |
|
|
|
this.editor.on(BI.Editor.EVENT_STOP, function () { |
|
|
|
this.editor.on(BI.Editor.EVENT_STOP, function () { |
|
|
|
self.fireEvent(BI.SearchEditor.EVENT_STOP); |
|
|
|
self.fireEvent(BI.SearchEditor.EVENT_STOP); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.clear.invisible(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_checkClear: function () { |
|
|
|
_checkClear: function () { |
|
|
|