From af0affb7bfbb2cd03beb64b5d81c0f445b920fbc Mon Sep 17 00:00:00 2001 From: j Date: Tue, 13 Mar 2018 18:21:15 +0530 Subject: [PATCH] only use pandora.user.ui.part.document if document dialog is open --- static/js/textPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/textPanel.js b/static/js/textPanel.js index 23e1340d0..d04e5541b 100644 --- a/static/js/textPanel.js +++ b/static/js/textPanel.js @@ -382,7 +382,7 @@ pandora.ui.textHTML = function(text) { } function scrollToPosition() { - var settings = (pandora.user.ui.part.document + var settings = (pandora.user.ui.page == 'document' && pandora.user.ui.part.document ? pandora.user.ui.documents[pandora.user.ui.part.document] : pandora.user.ui.section == 'documents' ? pandora.user.ui.documents[pandora.user.ui.document]