Browse Source

Fix read-out text player on lp

Angel Fernando Quiroz Campos 6 years ago
parent
commit
fd61abb388
1 changed files with 2 additions and 5 deletions
  1. 2 5
      main/inc/lib/javascript/readout_text/js/start.js

+ 2 - 5
main/inc/lib/javascript/readout_text/js/start.js

@@ -2,11 +2,8 @@
 
 $(function () {
     var parent$ = window.parent.$,
-        $player = parent$('audio#lp_audio_media_player_html5');
-
-    if ($player.length === 0) {
-        $player = parent$('audio#lp_audio_media_player');
-    }
+        playerSelector = '#' + parent$('mediaelementwrapper').attr('id') + '_html5',
+        $player = parent$(playerSelector);
 
     var player = $player.get(0),
         def = $.Deferred();