mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update bbcode.js
This commit is contained in:
parent
6001385f78
commit
3dcb02b909
@ -434,7 +434,7 @@ function initMedia(context)
|
||||
a.className = 'YTLink';
|
||||
a.innerHTML = '<span title="'+bbl['play_on']+'" class="YTLinkButton">►</span>';
|
||||
window.addEvent(a, 'click', function (e) {
|
||||
var vhref = e.target.nextSibling.href.replace(/^http(?:s|):\/\/www.youtube.com\/watch\?(.*)?(&?v=([a-z0-9\-_]+))(.*)?|http:\/\/youtu.be\//ig, "http://www.youtube.com/embed/$3");
|
||||
var vhref = e.target.nextSibling.href.replace(/^http(?:s|):\/\/www.youtube.com\/watch\?(.*)?(&?v=([a-z0-9\-_]+))(.*)?|http:\/\/youtu.be\//ig, "https://www.youtube.com/embed/$3");
|
||||
var text = e.target.nextSibling.innerText != "" ? e.target.nextSibling.innerText : e.target.nextSibling.href;
|
||||
$('#Panel_youtube').remove();
|
||||
ypanel('youtube', {
|
||||
@ -453,4 +453,4 @@ function initMedia(context)
|
||||
|
||||
$(document).ready(function(){
|
||||
$('div.post_wrap, div.signature').each(function(){ initPostBBCode( $(this) ) });
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user