fix #1726 (when tabbing to /news for the first time, item is not selected in list)

This commit is contained in:
rolux 2013-07-28 23:14:51 +00:00
parent 18e2b65b9c
commit a8fca7f07a

View file

@ -162,7 +162,8 @@ pandora.ui.news = function(width, height) {
padding: '4px 8px 5px 8px', padding: '4px 8px 5px 8px',
borderRadius: '8px', borderRadius: '8px',
margin: '2px', margin: '2px',
backgroundColor: item.id == pandora.user.ui.part.news backgroundColor: (item.id == pandora.user.ui.part.news)
|| (!pandora.user.ui.part.news && i == 0)
? backgroundColor : '', ? backgroundColor : '',
cursor: 'pointer' cursor: 'pointer'
}) })