Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php |
— | — | @@ -64,7 +64,7 @@ |
65 | 65 | array( 'src' => 'js/plugins/jquery.cookie.js', 'version' => 4 ), |
66 | 66 | array( 'src' => 'js/plugins/jquery.delayedBind.js', 'version' => 1 ), |
67 | 67 | array( 'src' => 'js/plugins/jquery.expandableField.js', 'version' => 17 ), |
68 | | - array( 'src' => 'js/plugins/jquery.suggestions.js', 'version' => 23 ), |
| 68 | + array( 'src' => 'js/plugins/jquery.suggestions.js', 'version' => 24 ), |
69 | 69 | array( 'src' => 'js/plugins/jquery.textSelection.js', 'version' => 36 ), |
70 | 70 | array( 'src' => 'js/plugins/jquery.wikiEditor.js', 'version' => 195 ), |
71 | 71 | array( 'src' => 'js/plugins/jquery.wikiEditor.highlight.js', 'version' => 53 ), |
— | — | @@ -80,10 +80,10 @@ |
81 | 81 | array( 'src' => 'js/thirdparty/contentCollector.js', 'version' => 2 ), |
82 | 82 | ), |
83 | 83 | 'combined' => array( |
84 | | - array( 'src' => 'js/plugins.combined.js', 'version' => 430 ), |
| 84 | + array( 'src' => 'js/plugins.combined.js', 'version' => 431 ), |
85 | 85 | ), |
86 | 86 | 'minified' => array( |
87 | | - array( 'src' => 'js/plugins.combined.min.js', 'version' => 431 ), |
| 87 | + array( 'src' => 'js/plugins.combined.min.js', 'version' => 432 ), |
88 | 88 | ), |
89 | 89 | ), |
90 | 90 | ); |
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.suggestions.js |
— | — | @@ -278,7 +278,7 @@ |
279 | 279 | // Arrow down |
280 | 280 | case 40: |
281 | 281 | if ( wasVisible ) { |
282 | | - $.suggestions.highlight( context, 'next', true ); |
| 282 | + $.suggestions.highlight( context, 'next', false ); |
283 | 283 | } else { |
284 | 284 | $.suggestions.update( context, false ); |
285 | 285 | } |
— | — | @@ -287,7 +287,7 @@ |
288 | 288 | // Arrow up |
289 | 289 | case 38: |
290 | 290 | if ( wasVisible ) { |
291 | | - $.suggestions.highlight( context, 'prev', true ); |
| 291 | + $.suggestions.highlight( context, 'prev', false ); |
292 | 292 | } |
293 | 293 | preventDefault = wasVisible; |
294 | 294 | break; |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.js |
— | — | @@ -1247,7 +1247,7 @@ |
1248 | 1248 | // Arrow down |
1249 | 1249 | case 40: |
1250 | 1250 | if ( wasVisible ) { |
1251 | | - $.suggestions.highlight( context, 'next', true ); |
| 1251 | + $.suggestions.highlight( context, 'next', false ); |
1252 | 1252 | } else { |
1253 | 1253 | $.suggestions.update( context, false ); |
1254 | 1254 | } |
— | — | @@ -1256,7 +1256,7 @@ |
1257 | 1257 | // Arrow up |
1258 | 1258 | case 38: |
1259 | 1259 | if ( wasVisible ) { |
1260 | | - $.suggestions.highlight( context, 'prev', true ); |
| 1260 | + $.suggestions.highlight( context, 'prev', false ); |
1261 | 1261 | } |
1262 | 1262 | preventDefault = wasVisible; |
1263 | 1263 | break; |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.min.js |
— | — | @@ -71,8 +71,8 @@ |
72 | 72 | selected.removeClass('suggestions-result-current');result.addClass('suggestions-result-current');} |
73 | 73 | if(updateTextbox){if(result.length==0){$.suggestions.restore(context);}else{context.data.$textbox.val(result.data('text'));context.data.$textbox.change();} |
74 | 74 | context.data.$textbox.trigger('change');} |
75 | | -$.suggestions.special(context);},keypress:function(e,context,key){var wasVisible=context.data.$container.is(':visible');var preventDefault=false;switch(key){case 40:if(wasVisible){$.suggestions.highlight(context,'next',true);}else{$.suggestions.update(context,false);} |
76 | | -preventDefault=true;break;case 38:if(wasVisible){$.suggestions.highlight(context,'prev',true);} |
| 75 | +$.suggestions.special(context);},keypress:function(e,context,key){var wasVisible=context.data.$container.is(':visible');var preventDefault=false;switch(key){case 40:if(wasVisible){$.suggestions.highlight(context,'next',false);}else{$.suggestions.update(context,false);} |
| 76 | +preventDefault=true;break;case 38:if(wasVisible){$.suggestions.highlight(context,'prev',false);} |
77 | 77 | preventDefault=wasVisible;break;case 27:context.data.$container.hide();$.suggestions.restore(context);$.suggestions.cancel(context);context.data.$textbox.trigger('change');preventDefault=wasVisible;break;case 13:context.data.$container.hide();preventDefault=wasVisible;selected=context.data.$container.find('.suggestions-result-current');if(selected.size()==0){$.suggestions.cancel(context);context.config.$region.closest('form').submit();}else if(selected.is('.suggestions-special')){if(typeof context.config.special.select=='function'){context.config.special.select.call(selected,context.data.$textbox);}}else{if(typeof context.config.result.select=='function'){$.suggestions.highlight(context,selected,true);context.config.result.select.call(selected,context.data.$textbox);}else{$.suggestions.highlight(context,selected,true);}} |
78 | 78 | break;default:$.suggestions.update(context,true);break;} |
79 | 79 | if(preventDefault){e.preventDefault();e.stopImmediatePropagation();}}};$.fn.suggestions=function(){var returnValue=null;var args=arguments;$(this).each(function(){var context=$(this).data('suggestions-context');if(typeof context=='undefined'||context==null){context={config:{'fetch':function(){},'cancel':function(){},'special':{},'result':{},'$region':$(this),'suggestions':[],'maxRows':7,'delay':120,'submitOnClick':false,'maxExpandFactor':3,'positionFromLeft':true,'highlightInput':false}};} |