Sha256: 9a0609084a6c40f8aec56671241f44fb4ab3b8dc21b7e4800dbd805c067bfea5

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

//>>built
define("dojox/mobile/SearchBox",["dojo/_base/declare","dojo/_base/lang","dijit/form/_SearchMixin","dojox/mobile/TextBox","dojo/dom-class","dojo/keys","./sniff"],function(_1,_2,_3,_4,_5,_6,_7){
return _1("dojox.mobile.SearchBox",[_4,_3],{baseClass:"mblTextBox mblSearchBox",type:"search",placeHolder:"",incremental:true,_setIncrementalAttr:function(_8){
this.incremental=_8;
},_onInput:function(e){
if(e.charOrCode==_6.ENTER){
e.charOrCode=229;
}else{
if(!this.incremental){
e.charOrCode=0;
}
}
this.inherited(arguments);
},postCreate:function(){
this.inherited(arguments);
this.textbox.removeAttribute("incremental");
if(!this.textbox.hasAttribute("results")){
this.textbox.setAttribute("results","0");
}
if(_7("iphone")<5){
_5.add(this.domNode,"iphone4");
this.connect(this.textbox,"onfocus",function(){
if(this.textbox.value!==""){
setTimeout(_2.hitch(this,function(){
if(this.textbox.value===""){
this._onInput({charOrCode:_6.ENTER});
}
}),0);
}
});
}
this.connect(this.textbox,"onsearch",function(){
this._onInput({charOrCode:_6.ENTER});
});
}});
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dojox-rails-0.14.0 vendor/assets/javascripts/dojox/mobile/SearchBox.js
dojox-rails-0.13.0 vendor/assets/javascripts/dojox/mobile/SearchBox.js
dojox-rails-0.12.0 vendor/assets/javascripts/dojox/mobile/SearchBox.js
dojox-rails-0.11.0 vendor/assets/javascripts/mobile/SearchBox.js