fixes Jquery references on loop

This commit is contained in:
nonmakina 2021-01-29 21:39:00 -06:00
parent 17c7fb3db0
commit 7a86b9f092

View file

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