From 31f59a226210b8aaf2c254bf83ab89a0c813cae6 Mon Sep 17 00:00:00 2001 From: loon <53606-loon@users.noreply.drupalcode.org> Date: Sat, 28 Jan 2023 10:00:14 +0000 Subject: [PATCH] Issue #3337168 by loon, Panchuk: Remove outdated method prepareContent() method --- js/paragraphs_gridstack.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/js/paragraphs_gridstack.js b/js/paragraphs_gridstack.js index 7841b05..152d2c8 100644 --- a/js/paragraphs_gridstack.js +++ b/js/paragraphs_gridstack.js @@ -7,10 +7,6 @@ "use strict"; - function prepareContent(src) { - return '<img src="' + src + '" alt="item" class="--grid-img">'; - } - function checkColumns(val){ let nc = parseFloat(val); nc = nc < 2 ? 2 : nc; @@ -93,7 +89,6 @@ let n = items[index] ? items[index] : {}; n.id = index; - n.content = prepareContent($(this).attr('src')); grid.addWidget(n); }); -- GitLab