diff options
| author | czaks <marcin@6irc.net> | 2014-04-06 22:28:26 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-04-06 22:28:26 +0200 |
| commit | 5c38368e600d04f4d2055a97c0b57a6dea520bd5 (patch) | |
| tree | 3cb980d74a29f7692131fd3231a83cac90678a46 /js/expand-video.js | |
| parent | ccc822d8ab46e9fb8c0308cdb4b6632d2aa09736 (diff) | |
webm: more integration
Diffstat (limited to 'js/expand-video.js')
| -rw-r--r-- | js/expand-video.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/expand-video.js b/js/expand-video.js index 96427667..530b8cac 100644 --- a/js/expand-video.js +++ b/js/expand-video.js @@ -208,9 +208,9 @@ function setupVideosIn(element) { } } -if (window.addEventListener) window.addEventListener("load", function(e) { +onready(function(){ // Insert menu from settings.js - if (typeof settingsMenu != "undefined") document.body.insertBefore(settingsMenu, document.body.firstChild); + if (typeof settingsMenu != "undefined") document.body.insertBefore(settingsMenu, document.getElementsByTagName("hr")[0]); // Setup Javascript events for videos in document now setupVideosIn(document); @@ -231,5 +231,5 @@ if (window.addEventListener) window.addEventListener("load", function(e) { }); observer.observe(document.body, {childList: true, subtree: true}); } -}, false); +}); |
