Wtf.KWLTagSearch=function(A){Wtf.KWLTagSearch.superclass.constructor.call(this,A)};Wtf.extend(Wtf.KWLTagSearch,Wtf.form.TextField,{Store:null,StorageArray:null,limit:15,initComponent:function(){Wtf.KWLTagSearch.superclass.initComponent.call(this);this.addEvents({"SearchComplete":true})},timer:new Wtf.util.DelayedTask(this.callKeyUp),setPage:function(A){this.limit=A},onRender:function(B,A){Wtf.KWLTagSearch.superclass.onRender.call(this,B,A);this.el.dom.onkeyup=this.onKeyUp.createDelegate(this)},onKeyUp:function(A){if(this.Store){if(this.getValue()!=""){this.timer.cancel();this.timer.delay(1000,this.callKeyUp,this)}else{this.Store.reload({params:{start:0,limit:this.limit,ss:""}})}this.fireEvent("SearchComplete",this.Store)}},callKeyUp:function(){this.Store.reload({params:{start:0,limit:this.limit,ss:this.getValue()}})},StorageChanged:function(A){this.Store=A;this.StorageArray=this.Store.getRange()}});Wtf.reg("KWLTagSearch",Wtf.KWLTagSearch)