On 02/25/2011 02:07 AM, jvelociter (SVN) wrote:
Author: jvelociter
Date: 2011-02-25 02:07:18 +0100 (Fri, 25 Feb 2011)
New Revision: 34922
Modified:
platform/web/trunk/standard/src/main/webapp/resources/js/xwiki/suggest/ajaxSuggest.js
Log:
XWIKI-6042 Allow to insert a node before the suggestion list(s) in the suggest widget
+ API to know wheter a suggestion is highlighted
Modified:
platform/web/trunk/standard/src/main/webapp/resources/js/xwiki/suggest/ajaxSuggest.js
===================================================================
---
platform/web/trunk/standard/src/main/webapp/resources/js/xwiki/suggest/ajaxSuggest.js 2011-02-24
23:33:57 UTC (rev 34921)
+++
platform/web/trunk/standard/src/main/webapp/resources/js/xwiki/suggest/ajaxSuggest.js 2011-02-25
01:07:18 UTC (rev 34922)
@@ -168,9 +169,6 @@
switch(key) {
case Event.KEY_RETURN:
Why did you remove this?
- if(this.aSuggestions.length == 1) {
- this.highlightFirst();
- }
this.setHighlightedValue();
Event.stop(event);
break;
--
Sergiu Dumitriu
http://purl.org/net/sergiu/