keep selected list from stealing focus from input element on home screen

This commit is contained in:
rolux 2011-10-24 16:37:50 +00:00
parent e76125bb88
commit 6707406294
2 changed files with 3 additions and 4 deletions

View file

@ -2,8 +2,6 @@
pandora.ui.home = function() {
// fixme: if a list was selected previously, it will steal focus from the input element
var that = $('<div>')
.addClass('OxScreen')
.css({

View file

@ -832,8 +832,9 @@ pandora.selectList = function() {
list.user == pandora.user.username ? 'personal' : 'favorite'
);
pandora.$ui.folderList[folder]
.options('selected', [pandora.user.ui._list])
.gainFocus();
.options({selected: [pandora.user.ui._list]});
// Don't steal focus from home screen
$('.OxScreen').length == 0 && pandora.$ui.folderList[folder].gainFocus();
}
});
}