Simplify document properties field logic
This patch: - Simplifies the way fields are passed to the document properties overlay - Simplifies the way fields are filled internally in the document properties overlay - Avoids passing a document properties reference to the secondary toolbar
This commit is contained in:
parent
1a5de56675
commit
6abf3d6ba3
3 changed files with 38 additions and 52 deletions
|
@ -25,7 +25,6 @@ var SecondaryToolbar = {
|
|||
|
||||
initialize: function secondaryToolbarInitialize(options) {
|
||||
this.toolbar = options.toolbar;
|
||||
this.documentProperties = options.documentProperties;
|
||||
this.buttonContainer = this.toolbar.firstElementChild;
|
||||
|
||||
// Define the toolbar buttons.
|
||||
|
@ -115,7 +114,7 @@ var SecondaryToolbar = {
|
|||
},
|
||||
|
||||
documentPropertiesClick: function secondaryToolbarDocumentPropsClick(evt) {
|
||||
this.documentProperties.open();
|
||||
PDFViewerApplication.pdfDocumentProperties.open();
|
||||
this.close();
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue