[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linterna-magica-commit] [338] Fixes YouTube support.
From: |
Ivaylo Valkov |
Subject: |
[linterna-magica-commit] [338] Fixes YouTube support. |
Date: |
Fri, 07 Dec 2012 18:53:10 +0000 |
Revision: 338
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=338
Author: valkov
Date: 2012-12-07 18:53:09 +0000 (Fri, 07 Dec 2012)
Log Message:
-----------
Fixes YouTube support. Closes bugs #37881.
Ticket Links:
------------
http://savannah.gnu.org/bugs/?37881
Modified Paths:
--------------
trunk/src/lm_site_youtube.js
Modified: trunk/src/lm_site_youtube.js
===================================================================
--- trunk/src/lm_site_youtube.js 2012-12-02 15:50:11 UTC (rev 337)
+++ trunk/src/lm_site_youtube.js 2012-12-07 18:53:09 UTC (rev 338)
@@ -387,7 +387,8 @@
if (!width || !height)
{
- var p = document.getElementById("watch-player");
+ var p = this.get_first_element_by_class("player-root");
+
height = p ? p.clientHeight : null;
width = p ? p.clientWidth : null;
}
@@ -439,7 +440,7 @@
linterna_magica_id =
this.mark_flash_object("extracted-from-script");
- object_data.parent = document.getElementById("watch-player");
+ object_data.parent = this.get_first_element_by_class("player-root");
}
object_data.linterna_magica_id = linterna_magica_id;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [linterna-magica-commit] [338] Fixes YouTube support.,
Ivaylo Valkov <=