Author: pyaschenko
Date: 2008-05-19 09:14:48 -0400 (Mon, 19 May 2008)
New Revision: 8632
Modified:
trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
Log:
http://jira.jboss.com/jira/browse/RF-3443
Modified:
trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
===================================================================
---
trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2008-05-19
12:21:03 UTC (rev 8631)
+++
trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2008-05-19
13:14:48 UTC (rev 8632)
@@ -406,12 +406,15 @@
},
onClick: function(event) {
- this.wasScroll = false;
- this.wasBlur = false;
- var element = this._findTr(event);//Event.findElement(event, 'TR');
- this.index = element.autocompleteIndex;
- this.selectEntry(event);
- this.hide();
+ if (this.active)
+ {
+ this.wasScroll = false;
+ this.wasBlur = false;
+ var element = this._findTr(event);//Event.findElement(event, 'TR');
+ this.index = element.autocompleteIndex;
+ this.selectEntry(event);
+ this.hide();
+ }
},
onMouseOut: function(event) {