[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linterna-magica-commit] [343] Merging r342 from trunk to branch 0.0.12
From: |
Ivaylo Valkov |
Subject: |
[linterna-magica-commit] [343] Merging r342 from trunk to branch 0.0.12 to fix the HD links list |
Date: |
Sun, 09 Dec 2012 08:33:56 +0000 |
Revision: 343
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=343
Author: valkov
Date: 2012-12-09 08:33:56 +0000 (Sun, 09 Dec 2012)
Log Message:
-----------
Merging r342 from trunk to branch 0.0.12 to fix the HD links list
overlapping in YouTube's new interface. Bugs #37881.
Revision Links:
--------------
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=342
Ticket Links:
------------
http://savannah.gnu.org/bugs/?37881
Modified Paths:
--------------
branches/0.0.12/src/lm_interface_hd_links.js
branches/0.0.12/src/lm_site_youtube.js
branches/0.0.12/src/lm_sites.js
Property Changed:
----------------
branches/0.0.12/
Property changes on: branches/0.0.12
___________________________________________________________________
Modified: svn:mergeinfo
- /branches/0.0.9:94
/branches/task-11216:102-156
/trunk:287,292,314,318,323,327,338,340
+ /branches/0.0.9:94
/branches/task-11216:102-156
/trunk:287,292,314,318,323,327,338,340,342
Modified: branches/0.0.12/src/lm_interface_hd_links.js
===================================================================
--- branches/0.0.12/src/lm_interface_hd_links.js 2012-12-09 08:30:25 UTC
(rev 342)
+++ branches/0.0.12/src/lm_interface_hd_links.js 2012-12-09 08:33:56 UTC
(rev 343)
@@ -124,7 +124,11 @@
if (display)
{
hd_list.style.removeProperty("display");
-
+ var self = this;
+ this.call_site_function_at_position.apply(self,[
+ "post_show_hd_links_list",
+ window.location.hostname]);
+
var hd_list_blur_function = function(ev)
{
var timeout_function = function()
@@ -137,6 +141,9 @@
{
hd_list.style.setProperty("display",
"none", "important");
+ self.call_site_function_at_position.apply(self,[
+ "post_hide_hd_links_list",
+ window.location.hostname]);
}
element.removeEventListener("blur",
hd_list_blur_function,
@@ -153,6 +160,10 @@
else
{
hd_list.style.setProperty("display", "none", "important");
+ var self = this;
+ this.call_site_function_at_position.apply(self,[
+ "post_hide_hd_links_list",
+ window.location.hostname]);
}
}
return true;
Modified: branches/0.0.12/src/lm_site_youtube.js
===================================================================
--- branches/0.0.12/src/lm_site_youtube.js 2012-12-09 08:30:25 UTC (rev
342)
+++ branches/0.0.12/src/lm_site_youtube.js 2012-12-09 08:33:56 UTC (rev
343)
@@ -664,3 +664,41 @@
return false;
}
+
+// Fixes the overlapping of the HD links list in YouTube's new design
+// See bug #37881
+// http://savannah.nongnu.org/bugs/?37881
+LinternaMagica.prototype.sites["youtube.com"].post_show_hd_links_list =
+function()
+{
+ var play_list= document.getElementById("watch7-playlist-tray-container");
+ if (play_list)
+ {
+ play_list.style.setProperty("display", "none", "important");
+ }
+
+ var side_bar= document.getElementById("watch7-sidebar");
+ if (side_bar)
+ {
+ side_bar.style.setProperty("display", "none", "important");
+ }
+}
+
+// Fixes the overlapping of the HD links list in YouTube's new design
+// See bug #37881
+// http://savannah.nongnu.org/bugs/?37881
+LinternaMagica.prototype.sites["youtube.com"].post_hide_hd_links_list =
+function()
+{
+ var play_list= document.getElementById("watch7-playlist-tray-container");
+ if (play_list)
+ {
+ play_list.style.removeProperty("display");
+ }
+
+ var side_bar= document.getElementById("watch7-sidebar");
+ if (side_bar)
+ {
+ side_bar.style.removeProperty("display");
+ }
+}
Modified: branches/0.0.12/src/lm_sites.js
===================================================================
--- branches/0.0.12/src/lm_sites.js 2012-12-09 08:30:25 UTC (rev 342)
+++ branches/0.0.12/src/lm_sites.js 2012-12-09 08:33:56 UTC (rev 343)
@@ -314,6 +314,21 @@
return true;
}
+// Execute an action after the HD link list is shown.
+LinternaMagica.prototype.sites.__post_show_hd_links_list =
+function()
+{
+ return true;
+}
+
+// Execute an action after the HD link list is hidden.
+LinternaMagica.prototype.sites.__post_hide_hd_links_list =
+function()
+{
+ return true;
+}
+
+
// Check if site specific config and function exists and call it. If
// it doesn't, call the general/default function. A function returns
// false/null, if the calling function should exit/return after this
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [linterna-magica-commit] [343] Merging r342 from trunk to branch 0.0.12 to fix the HD links list,
Ivaylo Valkov <=