mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Renames and refactors PDFView to PDFViewerApplication.
This commit is contained in:
parent
a89bba35b2
commit
44779f14b0
9 changed files with 232 additions and 186 deletions
|
@ -14,20 +14,18 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals PDFView, DownloadManager, getFileName */
|
||||
/* globals DownloadManager, getFileName */
|
||||
|
||||
'use strict';
|
||||
|
||||
var DocumentAttachmentsView = function documentAttachmentsView(attachments) {
|
||||
var attachmentsView = document.getElementById('attachmentsView');
|
||||
var DocumentAttachmentsView = function documentAttachmentsView(options) {
|
||||
var attachments = options.attachments;
|
||||
var attachmentsView = options.attachmentsView;
|
||||
while (attachmentsView.firstChild) {
|
||||
attachmentsView.removeChild(attachmentsView.firstChild);
|
||||
}
|
||||
|
||||
if (!attachments) {
|
||||
if (!attachmentsView.classList.contains('hidden')) {
|
||||
PDFView.switchSidebarView('thumbs');
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue