From e15c042a79a9b28ddace69dd91de561c69d1c3ae Mon Sep 17 00:00:00 2001 From: j Date: Thu, 6 Jun 2019 18:13:16 +0100 Subject: [PATCH] add preview on info page --- static/js/documentInfoView.mdr.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/static/js/documentInfoView.mdr.js b/static/js/documentInfoView.mdr.js index 7923a7d..3222068 100644 --- a/static/js/documentInfoView.mdr.js +++ b/static/js/documentInfoView.mdr.js @@ -269,6 +269,21 @@ pandora.ui.documentInfoView = function(data, isMixed) { .appendTo($text); } + // Preview + if (data.extension == 'pdf') { + var $div = $('
').css({ + marginTop: '12px', + }).html( + Ox.range(1, data.dimensions + 1).map(function(page) { + return '' + }).join('\n') + ) + pandora.createLinks($div); + $div.appendTo($text) + } + // Referenced -------------------------------------------------------------- if ( !isMultiple && (