fix(ajax player): i guess last fix

This commit is contained in:
mrilyew 2024-12-07 21:58:53 +03:00
parent 21f3ebea3d
commit efa3e1213c
2 changed files with 6 additions and 2 deletions

View file

@ -1023,6 +1023,7 @@
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
gap: 10px; gap: 10px;
opacity: 0.9;
} }
#ajax_audio_player #aj_player_buttons #aj_player_previous { #ajax_audio_player #aj_player_buttons #aj_player_previous {

View file

@ -729,13 +729,13 @@ window.player = new class {
</div> </div>
<div id='aj_player_track'> <div id='aj_player_track'>
<div id='aj_player_track_name'> <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> <b>Unknown</b>
<span>Untitled</span> <span>Untitled</span>
</a> </a>
<span id='aj_time'>00:00</span> <span id='aj_time' style='min-width: 28px;'>00:00</span>
</div> </div>
<div id='aj_player_track_length'> <div id='aj_player_track_length'>
<div class="selectableTrack"> <div class="selectableTrack">
@ -840,6 +840,9 @@ u(document).on('click', '.audioEntry .playerButton > .playIcon', async (e) => {
} else if(u(e.target).closest('.audiosInsert').length > 0) { } else if(u(e.target).closest('.audiosInsert').length > 0) {
window.player.connectionType = '.audiosInsert' window.player.connectionType = '.audiosInsert'
_nodes = u(e.target).closest('.audiosInsert').find('.audioEmbed').nodes _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 = [] window.player.tracks = []