From c1de6fbbdd5fdf7299d5e4aa265a6e2fbb0b05c1 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Fri, 16 May 2025 10:35:45 +0200 Subject: [PATCH] fix: masonry lib no longer used. cleaned up to avoid misleading JS errors --- js/scripts.js | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/js/scripts.js b/js/scripts.js index cfc1291b0..991868452 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -307,15 +307,6 @@ function showTiles(tiles, defaultForms) { //Display tiles $('#plugin_formcreator_wizard_forms').empty(); $('#plugin_formcreator_wizard_forms').prepend(html); - $('#plugin_formcreator_formlist').masonry({ - horizontalOrder: true, - gutter: 10 - }); - $('#plugin_formcreator_faqlist').masonry({ - horizontalOrder: true, - gutter: 10 - }); - $(".plugin_formcreator_formTile_description.tile_design_uniform_height").each(function( index ) { var length = 150; @@ -1257,12 +1248,6 @@ var plugin_formcreator = new function() { var html = '

' + i18n.textdomain('formcreator').__('An error occured while querying forms', 'formcreator') + '

' $('#plugin_formcreator_wizard_forms').empty(); $('#plugin_formcreator_wizard_forms').prepend(html); - $('#plugin_formcreator_formlist').masonry({ - horizontalOrder: true - }); - $('#plugin_formcreator_faqlist').masonry({ - horizontalOrder: true - }); } ); } @@ -1281,12 +1266,6 @@ var plugin_formcreator = new function() { var html = '

' + i18n.textdomain('formcreator').__('An error occured while querying forms', 'formcreator') + '

' $('#plugin_formcreator_wizard_forms').empty(); $('#plugin_formcreator_wizard_forms').prepend(html); - $('#plugin_formcreator_formlist').masonry({ - horizontalOrder: true - }); - $('#plugin_formcreator_faqlist').masonry({ - horizontalOrder: true - }); } ); }