fixes Jquery references on loop

This commit is contained in:
nonmakina 2021-01-29 21:39:00 -06:00
parent 0827ad09c9
commit 2c1130f76d

View File

@ -28,6 +28,7 @@ onready(function(){
const OFF = "[Embed]"; const OFF = "[Embed]";
function addEmbedButton(index, videoNode) { function addEmbedButton(index, videoNode) {
videoNode = $(videoNode);
var videoId = videoNode.data('video'); var videoId = videoNode.data('video');
var span = $("<span>[Embed]</span>"); var span = $("<span>[Embed]</span>");
var embedNode = $('<iframe style="float:left;margin: 10px 20px" type="text/html" '+ var embedNode = $('<iframe style="float:left;margin: 10px 20px" type="text/html" '+