From 02f00bd90984109b2bbf2ff48433a08014c52193 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 14 Feb 2014 05:52:56 +0000 Subject: [PATCH] fix #2299 (In document viewer dialog, previous/next buttons don't appear/disappear) --- static/js/documentDialog.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/documentDialog.js b/static/js/documentDialog.js index 25a46092..258cfb7f 100644 --- a/static/js/documentDialog.js +++ b/static/js/documentDialog.js @@ -211,6 +211,7 @@ pandora.ui.documentDialog = function(options) { items = options.items; item = items[options.index]; setTitle(); + $selectButton[items.length > 1 ? 'show' : 'hide'](); setContent(); };