Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.suggestions.js |
— | — | @@ -187,6 +187,10 @@ |
188 | 188 | $.suggestions.restore( context ); |
189 | 189 | } else { |
190 | 190 | context.data.$textbox.val( result.data( 'text' ) ); |
| 191 | + |
| 192 | + // .val() doesn't call any event handlers, so |
| 193 | + // let the world know what happened |
| 194 | + context.data.$textbox.change(); |
191 | 195 | } |
192 | 196 | } |
193 | 197 | $.suggestions.special( context ); |
— | — | @@ -316,7 +320,7 @@ |
317 | 321 | if ( $result.get( 0 ) != $other.get( 0 ) ) { |
318 | 322 | return; |
319 | 323 | } |
320 | | - highlight( $result, true ); |
| 324 | + $.suggestions.highlight( context, $result, true ); |
321 | 325 | context.data.$container.hide(); |
322 | 326 | if ( typeof context.config.result.select == 'function' ) { |
323 | 327 | context.config.result.select.call( $result, context.data.$textbox ); |