only use pandora.user.ui.part.document if document dialog is open

This commit is contained in:
j 2018-03-13 18:21:15 +05:30
parent 4e4471f1f6
commit af0affb7bf

View file

@ -382,7 +382,7 @@ pandora.ui.textHTML = function(text) {
} }
function scrollToPosition() { 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.documents[pandora.user.ui.part.document]
: pandora.user.ui.section == 'documents' : pandora.user.ui.section == 'documents'
? pandora.user.ui.documents[pandora.user.ui.document] ? pandora.user.ui.documents[pandora.user.ui.document]