|
|
@ -35,7 +35,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.clear.on(BI.IconButton.EVENT_CHANGE, function () { |
|
|
|
this.clear.on(BI.IconButton.EVENT_CHANGE, function () { |
|
|
|
self.setValue(""); |
|
|
|
self.setValue(""); |
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT); |
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT, self.getValue()); |
|
|
|
// 从有内容到无内容的清空也是一次change
|
|
|
|
// 从有内容到无内容的清空也是一次change
|
|
|
|
self.fireEvent(BI.SearchEditor.EVENT_CHANGE); |
|
|
|
self.fireEvent(BI.SearchEditor.EVENT_CHANGE); |
|
|
|
self.fireEvent(BI.SearchEditor.EVENT_CLEAR); |
|
|
|
self.fireEvent(BI.SearchEditor.EVENT_CLEAR); |
|
|
|