From 27497f9711c81fc1b3ce639d4f83e5b5dec70cd9 Mon Sep 17 00:00:00 2001 From: rlx Date: Mon, 11 Jan 2016 20:40:39 +0530 Subject: [PATCH] display cover in identify dialog --- static/js/identifyDialog.js | 2 +- static/js/infoView.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/static/js/identifyDialog.js b/static/js/identifyDialog.js index d093f86..6af2b65 100644 --- a/static/js/identifyDialog.js +++ b/static/js/identifyDialog.js @@ -199,7 +199,7 @@ oml.ui.identifyDialog = function(data) { }], items: items, keys: [ - 'title', 'author', + 'cover', 'title', 'author', 'publisher', 'place', 'date', 'series', 'edition', 'language', 'pages', 'categories', 'isbn', 'description', 'tableofcontents' diff --git a/static/js/infoView.js b/static/js/infoView.js index b5af6e0..a4f8eab 100644 --- a/static/js/infoView.js +++ b/static/js/infoView.js @@ -10,7 +10,7 @@ oml.ui.infoView = function(externalData, isMixed) { iconSize = externalData ? 256 : ui.iconSize, - isMultiple = arguments.length > 0, + isMultiple = arguments.length == 2, separator = '; ', @@ -765,7 +765,6 @@ oml.ui.infoView = function(externalData, isMixed) { } else if (!isMultiple) { that.updateElement(externalData, [$icon, $info]); } else { - Ox.print('***ELSE***', externalData) that.updateElement(externalData, [$info]); }