keep selected list from stealing focus from input element on home screen
This commit is contained in:
parent
e76125bb88
commit
6707406294
2 changed files with 3 additions and 4 deletions
|
@ -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({
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue