Skip to content

Commit

Permalink
fix(ajax player): i guess last fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrilyew committed Dec 7, 2024
1 parent 21f3ebe commit efa3e12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions Web/static/css/audios.css
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,7 @@
flex-direction: row;
align-items: center;
gap: 10px;
opacity: 0.9;
}

#ajax_audio_player #aj_player_buttons #aj_player_previous {
Expand Down
7 changes: 5 additions & 2 deletions Web/static/js/al_music.js
Original file line number Diff line number Diff line change
Expand Up @@ -729,13 +729,13 @@ window.player = new class {
</div>
<div id='aj_player_track'>
<div id='aj_player_track_name'>
<a id='aj_player_track_title' class='noOverflow' style='width: 300px;'>
<a id='aj_player_track_title' class='noOverflow' style='max-width: 300px;'>
<b>Unknown</b>
<span>Untitled</span>
</a>
<span id='aj_time'>00:00</span>
<span id='aj_time' style='min-width: 28px;'>00:00</span>
</div>
<div id='aj_player_track_length'>
<div class="selectableTrack">
Expand Down Expand Up @@ -840,6 +840,9 @@ u(document).on('click', '.audioEntry .playerButton > .playIcon', async (e) => {
} else if(u(e.target).closest('.audiosInsert').length > 0) {
window.player.connectionType = '.audiosInsert'
_nodes = u(e.target).closest('.audiosInsert').find('.audioEmbed').nodes
} else if(u(e.target).closest('.scroll_container').length > 0) {
window.player.connectionType = '.scroll_container'
_nodes = u(e.target).closest('.scroll_container').find('.audioEmbed').nodes
}

window.player.tracks = []
Expand Down

0 comments on commit efa3e12

Please sign in to comment.