Skip to content

Commit 718724e

Browse files
committed
fix(central): list of forms displayed twice
Signed-off-by: Thierry Bugier <[email protected]>
1 parent 9471023 commit 718724e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/scripts.js.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,15 @@ function fcInitMultiSelect() {
194194
}
195195

196196
function showHomepageFormList() {
197-
if ($('.homepage_forms_container').length) {
197+
if ($('#plugin_formcreatorHomepageForms').length) {
198198
return;
199199
}
200200

201201
$.ajax({
202202
url: rootDoc + '/plugins/formcreator/ajax/homepage_forms.php',
203203
type: "GET"
204204
}).done(function(response){
205-
if (!$('.homepage_forms_container').length) {
205+
if (!$('#plugin_formcreatorHomepageForms').length) {
206206
$('.central > tbody:first').first().prepend(response);
207207
}
208208
});

0 commit comments

Comments
 (0)