[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linterna-magica-commit] [226] Show the pause button and hide the play b
From: |
Ivaylo Valkov |
Subject: |
[linterna-magica-commit] [226] Show the pause button and hide the play button, when a link from the HD list was selected. |
Date: |
Tue, 29 Nov 2011 19:45:12 +0000 |
Revision: 226
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=226
Author: valkov
Date: 2011-11-29 19:45:11 +0000 (Tue, 29 Nov 2011)
Log Message:
-----------
Show the pause button and hide the play button, when a link from the HD list
was selected. Fixes stopped players that after HD link selection show play
button. This is misleading since the clip starts playing.
Modified Paths:
--------------
trunk/src/lm_interface_hd_links.js
Modified: trunk/src/lm_interface_hd_links.js
===================================================================
--- trunk/src/lm_interface_hd_links.js 2011-11-29 14:34:35 UTC (rev 225)
+++ trunk/src/lm_interface_hd_links.js 2011-11-29 19:45:11 UTC (rev 226)
@@ -79,6 +79,22 @@
// timer/interval when there is no acces to the object.
this.player.init.apply(this,[id]);
+ var control_id = "linterna-magica-controls-button-play-"+id;
+ var play = document.getElementById(control_id);
+
+ if (play)
+ {
+ play.style.setProperty("display", "none", "important");
+ }
+
+ control_id = "linterna-magica-controls-button-pause-"+id;
+ var pause = document.getElementById(control_id);
+
+ if (pause)
+ {
+ pause.style.removeProperty("display");
+ }
+
// Set the new selected link in the list and clear the old one
if (selected_link)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [linterna-magica-commit] [226] Show the pause button and hide the play button, when a link from the HD list was selected.,
Ivaylo Valkov <=