fix: Fix 'resume' when clicking on item details poster
Find the element with 'action'.
This commit is contained in:
@@ -1926,7 +1926,15 @@ export default function (view, params) {
|
||||
}
|
||||
|
||||
function onPlayClick() {
|
||||
playCurrentItem(this, this.getAttribute('data-action'));
|
||||
let actionElem = this;
|
||||
let action = actionElem.getAttribute('data-action');
|
||||
|
||||
if (!action) {
|
||||
actionElem = actionElem.querySelector('[data-action]') || actionElem;
|
||||
action = actionElem.getAttribute('data-action');
|
||||
}
|
||||
|
||||
playCurrentItem(actionElem, action);
|
||||
}
|
||||
|
||||
function onInstantMixClick() {
|
||||
|
||||
Reference in New Issue
Block a user