Skip to content

Commit

Permalink
fix(section): duplicating section shows inner questions twice
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Mar 17, 2022
1 parent eebbb11 commit cfdf940
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -911,8 +911,6 @@ var plugin_formcreator = new function() {
var lastSection = $('.plugin_formcreator_form_design[data-itemtype="PluginFormcreatorForm"] [data-itemtype="PluginFormcreatorSection"]').last();
lastSection.after(data);
sectionId = $('.plugin_formcreator_form_design[data-itemtype="PluginFormcreatorForm"] [data-itemtype="PluginFormcreatorSection"]').last().attr('data-id');
plugin_formcreator.initGridStack(sectionId);
plugin_formcreator.updateSectionControls();
that.resetTabs();
}).fail(function(data) {
alert(data.responseText);
Expand Down

0 comments on commit cfdf940

Please sign in to comment.