We fully customized Document Viewer HTML Page, but still old dialog window, when clicking on Annotat

58 views
Skip to first unread message

Alexey Pasmanik

unread,
Dec 19, 2016, 1:16:19 PM12/19/16
to PDFTron WebViewer
HI !

We fully customized Document Viewer HTML Page, but still see some old dialog window, when double clicking on Custom Annotation type, 

This code i found in "protected file" CoreControls.js  : 

Sw: function() {
var a = $('<div class="popup-header"/>').append('<div class="popup-subject">' + this.jb.Subject + "</div>"),
b = $('<div class="popup-comment-container">').append(this.Rw(this.jb)),
a = $('<div class="popup" style="width:200px;height:100px;padding-bottom:8px" />').append('<div class="popup-minimize-button ui-icon ui-icon-minus"/>').append('<div class="popup-handle"/>').append(a).append(b);
this.el =
a.get(0);
return a
},


Any options to disable this code (popups when clicking on Annotation Icon) , by right way ? 

Regards, 
Alexey P, 

Classoos

Matt Parizeau

unread,
Dec 20, 2016, 2:24:58 PM12/20/16
to PDFTron WebViewer
Hi Alexey,

Since you've customized ReaderControl.html you may no longer be including NotesPanel.js which also included a call to disable those popup notes. You can add the following code to disable the popup notes:

annotManager.disableDefaultStickyNotes();

Matt Parizeau
Software Developer
PDFTron Systems Inc.

Alexey Pasmanik

unread,
Dec 21, 2016, 1:17:47 PM12/21/16
to PDFTron WebViewer
Thnaks
Reply all
Reply to author
Forward
0 new messages