Index: trunk/extensions/Vector/modules/ext.vector.simpleSearch.js |
— | — | @@ -54,7 +54,9 @@ |
55 | 55 | }, |
56 | 56 | dataType: 'json', |
57 | 57 | success: function( data ) { |
58 | | - $this.suggestions( 'suggestions', data[1] ); |
| 58 | + if ( data && 1 in data ) { |
| 59 | + $this.suggestions( 'suggestions', data[1] ); |
| 60 | + } |
59 | 61 | } |
60 | 62 | }); |
61 | 63 | $(this).data( 'request', request ); |
Property changes on: trunk/extensions/Vector/modules/ext.vector.simpleSearch.js |
___________________________________________________________________ |
Added: svn:mergeinfo |
62 | 64 | Merged /branches/wmf/1.16wmf4/extensions/UsabilityInitiative/Vector/Modules/SimpleSearch/SimpleSearch.js:r77329 |