Skip to content

Commit

Permalink
fix(central): list of forms displayed twice
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Mar 16, 2020
1 parent 5441fc6 commit 00d3180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/scripts.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,15 @@ function fcInitMultiSelect() {
}

function showHomepageFormList() {
if ($('.homepage_forms_container').length) {
if ($('#plugin_formcreatorHomepageForms').length) {
return;
}

$.ajax({
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);
}
});
Expand Down

0 comments on commit 00d3180

Please sign in to comment.