only use pandora.user.ui.part.document if document dialog is open
This commit is contained in:
parent
4e4471f1f6
commit
af0affb7bf
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue