Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve how the findbar's toggle button is referenced in the viewer code #18510

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ const PDFViewerApplication = {
}

if (this.supportsIntegratedFind) {
appConfig.toolbar?.viewFind?.classList.add("hidden");
appConfig.findBar?.toggleButton?.classList.add("hidden");
timvandermeij marked this conversation as resolved.
Show resolved Hide resolved
}

if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
Expand Down
1 change: 0 additions & 1 deletion web/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import {
* @property {HTMLButtonElement} next - Button to go to the next page.
* @property {HTMLButtonElement} zoomIn - Button to zoom in the pages.
* @property {HTMLButtonElement} zoomOut - Button to zoom out the pages.
* @property {HTMLButtonElement} viewFind - Button to open find bar.
* @property {HTMLButtonElement} editorFreeTextButton - Button to switch to
* FreeText editing.
* @property {HTMLButtonElement} download - Button to download the document.
Expand Down
1 change: 0 additions & 1 deletion web/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ function getViewerConfiguration() {
next: document.getElementById("next"),
zoomIn: document.getElementById("zoomIn"),
zoomOut: document.getElementById("zoomOut"),
viewFind: document.getElementById("viewFind"),
print: document.getElementById("print"),
editorFreeTextButton: document.getElementById("editorFreeText"),
editorFreeTextParamsToolbar: document.getElementById(
Expand Down