update UI and URL controllers (text position)

This commit is contained in:
rolux 2013-08-07 15:25:13 +00:00
commit 4f5bb21a21
2 changed files with 12 additions and 1 deletions

View file

@ -65,7 +65,9 @@ pandora.URL = (function() {
: []
);
} else if (pandora.user.ui.section == 'texts') {
var position = pandora.user.ui.texts[pandora.user.ui.text].position;
var position = pandora.user.ui.texts[state.text]
? pandora.user.ui.texts[state.text].position
: 0;
if (position) {
state.span = position;
}