Explorar el Código

Corrected preloaded icon image paths in HTML5 audio player Javascript.

Nate Jones hace 11 años
padre
commit
39cd05c07e
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 2 2
      themes/enhanced/template.php
  2. 2 2
      themes/minimized/template.php

+ 2 - 2
themes/enhanced/template.php

@@ -1077,8 +1077,8 @@ legend {
 
 <script type='text/javascript'>
 	// preload images
-	img_play = new Image();	img_play.src = "<?=$v_link_label_play?>";
-	img_pause = new Image(); img_pause.src = "<?=$v_link_label_pause?>";
+	img_play = new Image();	img_play.src = "<?php echo PROJECT_PATH; ?>/themes/enhanced/images/icon_play.png";
+	img_pause = new Image(); img_pause.src = "<?php echo PROJECT_PATH; ?>/themes/enhanced/images/icon_pause.png";
 
 	var recording_audio;
 

+ 2 - 2
themes/minimized/template.php

@@ -1091,8 +1091,8 @@ legend {
 
 <script type='text/javascript'>
 	// preload images
-	img_play = new Image();	img_play.src = "<?=$v_link_label_play?>";
-	img_pause = new Image(); img_pause.src = "<?=$v_link_label_pause?>";
+	img_play = new Image();	img_play.src = "<?php echo PROJECT_PATH; ?>/themes/minimized/images/icon_play.png";
+	img_pause = new Image(); img_pause.src = "<?php echo PROJECT_PATH; ?>/themes/minimized/images/icon_pause.png";
 
 	var recording_audio;