refactor: Use same name for action (mode) attribute

This commit is contained in:
Dmitry Lyzo 2022-02-20 19:28:36 +03:00
parent f94b64ad99
commit 8221f82d1f
2 changed files with 3 additions and 3 deletions

View File

@ -13,13 +13,13 @@
</div>
<div class="mainDetailButtons focuscontainer-x">
<button is="emby-button" type="button" class="button-flat btnResume hide detailButton" title="${ButtonResume}" data-mode="resume">
<button is="emby-button" type="button" class="button-flat btnResume hide detailButton" title="${ButtonResume}" data-action="resume">
<div class="detailButton-content">
<span class="material-icons detailButton-icon play_arrow"></span>
</div>
</button>
<button is="emby-button" type="button" class="button-flat btnPlay hide detailButton" title="${Play}" data-mode="play">
<button is="emby-button" type="button" class="button-flat btnPlay hide detailButton" title="${Play}" data-action="play">
<div class="detailButton-content">
<span class="material-icons detailButton-icon play_arrow"></span>
</div>

View File

@ -1973,7 +1973,7 @@ export default function (view, params) {
}
function onPlayClick() {
playCurrentItem(this, this.getAttribute('data-mode'));
playCurrentItem(this, this.getAttribute('data-action'));
}
function onPosterClick(e) {