Develop and Download Open Source Software

Browse Subversion Repository

Diff of /js/input_assist.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6 by berupon, Sat Dec 5 02:36:36 2009 UTC revision 17 by berupon, Tue Dec 29 22:32:33 2009 UTC
# Line 39  InputAssist.prototype = { Line 39  InputAssist.prototype = {
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);
# Line 263  InputAssist.prototype = { Line 276  InputAssist.prototype = {
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

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26