Browse Subversion Repository
Diff of /js/input_assist.js
Parent Directory
| Revision Log
| Patch
| 39 |
}, |
}, |
| 40 |
|
|
| 41 |
onBlur : function (e) { |
onBlur : function (e) { |
| 42 |
|
var matched = false; |
| 43 |
|
if (this.matchedDataList.length) { |
| 44 |
|
for (var i=0; i<this.matchedDataList.length; ++i) { |
| 45 |
|
if (this.matchData(this.matchedDataList[i]) == 1) { |
| 46 |
|
matched = true; |
| 47 |
|
this.selectData(i); |
| 48 |
|
break; |
| 49 |
|
} |
| 50 |
|
} |
| 51 |
|
} |
| 52 |
|
if (!matched) { |
| 53 |
|
this.setData(null); |
| 54 |
|
} |
| 55 |
this.hideList(); |
this.hideList(); |
| 56 |
if (this.timer) { |
if (this.timer) { |
| 57 |
clearTimeout(this.timer); |
clearTimeout(this.timer); |
| 276 |
var results = new Array(); |
var results = new Array(); |
| 277 |
for (var i=0; i<this.dataList.length; ++i) { |
for (var i=0; i<this.dataList.length; ++i) { |
| 278 |
var data = this.dataList[i]; |
var data = this.dataList[i]; |
| 279 |
var result = this.matchData(data); |
var ret = {html:''}; |
| 280 |
if (result) { |
if (this.matchData(data, ret)) { |
| 281 |
this.matchedDataList.push(data); |
this.matchedDataList.push(data); |
| 282 |
results.push(result); |
results.push(ret.html); |
| 283 |
} |
} |
| 284 |
} |
} |
| 285 |
if (results.length != 0) { |
if (results.length != 0) { |
|
|
Legend:
| Removed from v.6 |
|
| changed lines |
| |
Added in v.17 |
|
|
|