(text, path)
| 206 | } |
| 207 | |
| 208 | function updatePlaceholder(text, path) { |
| 209 | const $input = Docsify.dom.getNode('.search input[type="search"]'); |
| 210 | |
| 211 | if (!$input) { |
| 212 | return; |
| 213 | } |
| 214 | |
| 215 | if (typeof text === 'string') { |
| 216 | $input.placeholder = text; |
| 217 | } else { |
| 218 | const match = Object.keys(text).filter(key => path.indexOf(key) > -1)[0]; |
| 219 | $input.placeholder = text[match]; |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | function updateNoData(text, path) { |
| 224 | if (typeof text === 'string') { |
no outgoing calls
no test coverage detected
searching dependent graphs…