| 279 | }; |
| 280 | |
| 281 | let _renderOmniSearchState = state => { |
| 282 | state = state || (window.Formatter && Formatter.getSearchState && Formatter.getSearchState()) || {current: 0, total: 0}; |
| 283 | let text = state.total ? (state.current + '/' + state.total) : '0/0'; |
| 284 | $('#fhJsonSearchCount') |
| 285 | .text(text) |
| 286 | .toggleClass('is-empty', !state.total); |
| 287 | $('#fhJsonSearchTrigger') |
| 288 | .attr('title', state.total ? ('搜索结果:' + text) : '搜索 Key / 值') |
| 289 | .toggleClass('has-result', !!state.total); |
| 290 | }; |
| 291 | |
| 292 | let _refreshOmniSelectionState = () => { |
| 293 | window.Formatter && Formatter.getSelectionInfo && Formatter.getSelectionInfo(); |
no test coverage detected