Okay
  Public Ticket #3987543
Playback Trigger
Open

Comments

  • George H started the conversation

    It is possible to trigger the playing of a track within a playlist by clicking anywhere on the track (inside the li) and not just when clicking the track title?

  •  687
    Alexandre replied

    Hi George, 
    No, that's not possible — only the play icon and the track title can be used to trigger playback.

    Thanks,


    Alexandre from the Sonaar.io Crew

  • George H replied

    i managed to achieve it with the following code, thanks

    jQuery(document).ready(function ($) { 
        $(document).on('click', 'ul.srp_list > li', function (e) { 
            if (!$(e.target).closest('.srp_audio_trigger').length)
                { $(this).find('.srp_audio_trigger').trigger('click'); 
            } 
        }); 
    });





  •  687
    Alexandre replied

    Well done

    Thanks,


    Alexandre from the Sonaar.io Crew