diff --git a/js/scripts.js.php b/js/scripts.js.php index 6d101c3e7..1151a0e64 100644 --- a/js/scripts.js.php +++ b/js/scripts.js.php @@ -195,7 +195,7 @@ function fcInitMultiSelect() { } function showHomepageFormList() { - if ($('.homepage_forms_container').length) { + if ($('#plugin_formcreatorHomepageForms').length) { return; } @@ -203,7 +203,7 @@ function showHomepageFormList() { url: rootDoc + '/plugins/formcreator/ajax/homepage_forms.php', type: "GET" }).done(function(response){ - if (!$('.homepage_forms_container').length) { + if (!$('#plugin_formcreatorHomepageForms').length) { $('.central > tbody:first').first().prepend(response); } });