Index: trunk/extensions/SemanticForms/includes/SF_AutocompleteAPI.php |
— | — | @@ -60,9 +60,13 @@ |
61 | 61 | $data = array(); |
62 | 62 | } |
63 | 63 | |
| 64 | + // to prevent JS parsing problems, display should be the same |
| 65 | + // even if there are no results |
| 66 | + /* |
64 | 67 | if ( count( $data ) <= 0 ) { |
65 | 68 | return; |
66 | 69 | } |
| 70 | + */ |
67 | 71 | |
68 | 72 | // Set top-level elements. |
69 | 73 | $result = $this->getResult(); |
— | — | @@ -161,4 +165,4 @@ |
162 | 166 | return $values; |
163 | 167 | } |
164 | 168 | |
165 | | -} |
\ No newline at end of file |
| 169 | +} |