Author: pyaschenko
Date: 2010-07-30 08:10:15 -0400 (Fri, 30 Jul 2010)
New Revision: 18290
Modified:
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoComplete.js
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoCompleteBase.js
Log:
https://jira.jboss.org/browse/RF-8875
bug fixes
Modified:
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoComplete.js
===================================================================
---
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoComplete.js 2010-07-30
11:40:03 UTC (rev 18289)
+++
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoComplete.js 2010-07-30
12:10:15 UTC (rev 18290)
@@ -28,7 +28,6 @@
}
if ((!this.lastKey || key.indexOf(this.lastKey)!=0) && newCache.length > 0)
{
- //console && console.log && console.log("added
key:"+key+" length:" + newCache.length)
this.cache[key] = newCache;
if (newCache.length==1) {
this.lastKey = key;
@@ -130,7 +129,6 @@
};
var onMouseAction = function(event) {
- console && console.log && console.log("mouseAction:" +
event.type);
var element = $(event.target).closest(".rf-ac-i",
event.currentTarget).get(0);
if (element) {
Modified:
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoCompleteBase.js
===================================================================
---
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoCompleteBase.js 2010-07-30
11:40:03 UTC (rev 18289)
+++
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/org.richfaces/AutoCompleteBase.js 2010-07-30
12:10:15 UTC (rev 18290)
@@ -86,17 +86,13 @@
var onSelectMouseDown = function () {
this.isMouseDown = true;
- //console && console.log && console.log("onMouseDown");
};
var onSelectMouseUp = function () {
- //this.isMouseDown = false;
rf.getDomElement(this.fieldId).focus();
- //console && console.log && console.log("onMouseUp");
};
var onButtonShow = function (event) {
this.isMouseDown = true;
- //console && console.log && console.log("onButtonShow -
"+this.timeoutId);
if (this.timeoutId) {
window.clearTimeout(this.timeoutId);
this.timeoutId = null;
@@ -111,16 +107,13 @@
};
var onFocus = function (event) {
- //console && console.log && console.log("onFocus");
};
var onBlur = function (event) {
- //console && console.log && console.log("onBlur");
if (this.isMouseDown) {
rf.getDomElement(this.fieldId).focus();
this.isMouseDown = false;
- //console && console.log && console.log("---------> and
focus");
- } else if (this.isVisible && !this.isMouseDown/*&&
checkOnBlur.call(this, event)*/) {
+ } else if (this.isVisible && !this.isMouseDown) {
var _this = this;
this.timeoutId = window.setTimeout(function(){_this.hide();}, 200);
}
@@ -178,7 +171,6 @@
this.__onPageDown(event);
}
break;
- case rf.KEYS.TAB:
case rf.KEYS.RETURN:
event.preventDefault();