(index)
| 1204 | }; |
| 1205 | |
| 1206 | let _selectSearchMatch = function (index) { |
| 1207 | if (!jsonSearchState.matches.length) { |
| 1208 | return _getSearchResultState(); |
| 1209 | } |
| 1210 | |
| 1211 | let total = jsonSearchState.matches.length; |
| 1212 | jsonSearchState.index = (index + total) % total; |
| 1213 | $('#jfContent .fh-json-search-active').removeClass('fh-json-search-active'); |
| 1214 | |
| 1215 | let target = $(jsonSearchState.matches[jsonSearchState.index]); |
| 1216 | target.addClass('fh-json-search-active'); |
| 1217 | _selectJsonElement(target); |
| 1218 | |
| 1219 | return _getSearchResultState(); |
| 1220 | }; |
| 1221 | |
| 1222 | let _searchJsonNodes = function (query) { |
| 1223 | query = String(query || '').trim(); |
no test coverage detected