8000 minor #21294 [VarDumper] Fixed typo in new search input (ro0NL) · symfony/symfony@372f409 · GitHub
[go: up one dir, main page]

Skip to content

Commit 372f409

Browse files
minor #21294 [VarDumper] Fixed typo in new search input (ro0NL)
This PR was merged into the 3.3-dev branch. Discussion ---------- [VarDumper] Fixed typo in new search input | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> I guess both work out.. but using `of` notation is way more common. Btw chrome search doesnt show `0 of 0` (at least not initially).. maybe worth it? /cc @ogizanagi Commits ------- f8d63a6 [VarDumper] Fixed typo in new search input
2 parents 2324b93 + f8d63a6 commit 372f409

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,14 +462,14 @@ function showCurrent(state)
462462
reveal(currentNode);
463463
highlight(root, currentNode, state.nodes);
464464
}
465-
counter.textContent = (state.isEmpty() ? 0 : state.idx + 1) + ' on ' + state.count();
465+
counter.textContent = (state.isEmpty() ? 0 : state.idx + 1) + ' of ' + state.count();
466466
}
467467
468468
var search = doc.createElement('div');
469469
search.className = 'sf-dump-search-wrapper sf-dump-search-hidden';
470470
search.innerHTML = '
471471
<input type="text" class="sf-dump-search-input">
472-
<span class="sf-dump-search-count">0 on 0<\/span>
472+
<span class="sf-dump-search-count">0 of 0<\/span>
473473
<button type="button" class="sf-dump-search-input-previous" tabindex="-1">
474474
<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg">
475475
<path d="M1683 1331l-166 165q-19 19-45 19t-45-19l-531-531-531 531q-19 19-45 19t-45-19l-166-165q-19-19-19-45.5t19-45.5l742-741q19-19 45-19t45 19l742 741q19 19 19 45.5t-19 45.5z"\/>
@@ -501,7 +501,7 @@ function showCurrent(state)
501501
resetHighlightedNodes(root);
502502
var searchQuery = e.target.value;
503503
if ('' === searchQuery) {
504-
counter.textContent = '0 on 0';
504+
counter.textContent = '0 of 0';
505505
506506
return;
507507
}

0 commit comments

Comments
 (0)
0