On Fri, Feb 25, 2011 at 2:47 AM, Sergiu Dumitriu <sergiu(a)xwiki.com> wrote:
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?
Good question :)
I thought it had no use, but now I understand it's a shortcut for when
there is only one result. Will put it back.
- if(this.aSuggestions.length == 1) {
- this.highlightFirst();
- }
this.setHighlightedValue();
Event.stop(event);
break;
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs