diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2011-05-26 18:42:10 +0200 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2011-05-26 18:42:10 +0200 |
commit | 880d215a9fbafec25f7d6172b22e8dd0915a0c9a (patch) | |
tree | b38c09708f5e075121da6bb88fbd33557c918fe7 /sonar-server | |
parent | aa2b9116625c1bcb08da5ba0858c035f847eaa26 (diff) | |
download | sonarqube-880d215a9fbafec25f7d6172b22e8dd0915a0c9a.tar.gz sonarqube-880d215a9fbafec25f7d6172b22e8dd0915a0c9a.zip |
SONAR-1688 Search box does not allow mouse clicks to select the item.
Had to comment 1 line in scriptaculous.js file.
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/javascripts/scriptaculous.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sonar-server/src/main/webapp/javascripts/scriptaculous.js b/sonar-server/src/main/webapp/javascripts/scriptaculous.js index b5d327f416c..e291e44f222 100644 --- a/sonar-server/src/main/webapp/javascripts/scriptaculous.js +++ b/sonar-server/src/main/webapp/javascripts/scriptaculous.js @@ -1506,10 +1506,10 @@ Autocompleter.Base = Class.create({ var value = ''; if (this.options.select) { var nodes = $(selectedElement).select('.' + this.options.select) || []; - if(nodes.length>0) value = Element.collectTextNodes(nodes[0], this.options.select); + if(nodes.length>0) value = Element.collectTextNodes(nodes[0], this.options.select); } else value = Element.collectTextNodesIgnoreClass(selectedElement, 'informal'); - + var bounds = this.getTokenBounds(); if (bounds[0] != -1) { var newValue = this.element.value.substr(0, bounds[0]); @@ -1521,7 +1521,9 @@ Autocompleter.Base = Class.create({ this.element.value = value; } this.oldElementValue = this.element.value; - this.element.focus(); + // Following line was commented for SONAR-1688 because in our autosuggest text fields, we use + // the onfocus() method to reinitialize the value of the input field to ''. + //this.element.focus(); if (this.options.afterUpdateElement) this.options.afterUpdateElement(this.element, selectedElement); |