1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

add critic rating column

This commit is contained in:
Luke Pulverenti 2016-03-24 22:54:38 -04:00
parent ef206ec9a5
commit fbd1d13138
12 changed files with 92 additions and 60 deletions

View file

@ -77,6 +77,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
* @param {string|number} value the value to select.
*/
select: function(value) {
// Cancel automatically focusing a default item if the menu received focus
// through a user action selecting a particular item.
if (this._defaultFocusAsync) {
this.cancelAsync(this._defaultFocusAsync);
this._defaultFocusAsync = null;
@ -247,8 +249,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
return;
}
this.blur();
// clear the cached focus item
this._defaultFocusAsync = this.async(function() {
// focus the selected item when the menu receives focus, or the first item
@ -259,11 +259,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
if (selectedItem) {
this._setFocusedItem(selectedItem);
} else {
} else if (this.items[0]) {
this._setFocusedItem(this.items[0]);
}
// async 1ms to wait for `select` to get called from `_itemActivate`
}, 1);
});
},
/**