Skip to content

Commit 056b419

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/scripts.js.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,15 +195,15 @@ function fcInitMultiSelect() {
195195
}
196196

197197
function showHomepageFormList() {
198-
if ($('.homepage_forms_container').length) {
198+
if ($('#plugin_formcreatorHomepageForms').length) {
199199
return;
200200
}
201201

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

0 commit comments

Comments
 (0)