From cfa01786bd952dcb187d046dade4e16fab4ff905 Mon Sep 17 00:00:00 2001 From: Forkless Date: Sun, 2 Nov 2014 23:46:13 -0600 Subject: [PATCH] Missed a couple things for the youtube timeslice support. --- inc/config.php | 6 +++--- js/youtube.js | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/inc/config.php b/inc/config.php index 655c69cc..9f62a19d 100644 --- a/inc/config.php +++ b/inc/config.php @@ -1000,7 +1000,7 @@ $config['embedding'] = array( array( '/^https?:\/\/(?:\w+\.)?youtube\.com\/watch\?(?:&?v=([a-zA-Z0-9\-_]{10,11})|(&?start=\d*)|(&?end=\d*)|(?:&?[^&]+))*$/i', - '' + '' ), array( '/^https?:\/\/(\w+\.)?vimeo\.com\/(\d{2,10})(\?.+)?$/i', @@ -1657,7 +1657,7 @@ $config['board_regex'] = '[0-9a-zA-Z$_\x{0080}-\x{FFFF}]{1,58}'; // Youtube.js embed HTML code - $config['youtube_js_html'] = '
'. + $config['youtube_js_html'] = ''; diff --git a/js/youtube.js b/js/youtube.js index 9fe81b60..c4ef77fb 100644 --- a/js/youtube.js +++ b/js/youtube.js @@ -26,11 +26,9 @@ onready(function(){ var do_embed_yt = function(tag) { $('div.video-container a', tag).click(function() { - var videoID = $(this.parentNode).data('video'); - $(this.parentNode).html('