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

Moves all document.getElementById lookups into viewer.js #7209

Merged
merged 1 commit into from
Apr 21, 2016

Conversation

yurydelendik
Copy link
Contributor

@yurydelendik yurydelendik commented Apr 16, 2016

This shall make the generic viewer customization easier.

lessInfoButton: document.getElementById('errorShowLess'),
},
printContainer: document.getElementById('printContainer'),
openFileInputName: 'fileInput',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be more consistent to use document.getElementById('fileInput') for this line too. The advantage is that we then do not have to query for the input in other places anymore (such as the secondary toolbar), but we can directly use this element. Let's call it openFileInput in this case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fileInput is dynamically created only for non-extension/demo viewer. I would rather change the code later to generate dynamic name for it (but there is some dependency on app in secondary toolbar we need to resolve first)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(btw, it's okay to have non-HTML elements in this configuration, I just pulled DOM elements here)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. In that case let's forget about my comment for now.

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/eaddb8a494fdc2f/output.txt

@Snuffleupagus Snuffleupagus merged commit 4aac324 into mozilla:master Apr 21, 2016
@Snuffleupagus
Copy link
Collaborator

Looks good, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants