Skip to content

Commit

Permalink
fix(section): typo, update name of section may update name of an inne…
Browse files Browse the repository at this point in the history
…r question

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Apr 3, 2020
1 parent 2b33cd3 commit d6cb0db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/section.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ public function getDesignHtml() {
$onclick = 'onclick="plugin_formcreator.showSectionForm(' . $formId . ', ' . $sectionId . ')"';
$html .= '<li class="plugin_formcreator_section"'
. ' data-itemtype="' . PluginFormcreatorSection::class . '"'
. '* data-id="' . $sectionId . '"'
. ' data-id="' . $sectionId . '"'
. '>';

// section name
Expand Down
2 changes: 1 addition & 1 deletion js/scripts.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ function buildTiles(list) {
alert(data.responseText);
}).done(function(data) {
var section = $('.plugin_formcreator_form_design[data-itemtype="PluginFormcreatorForm"] [data-itemtype="PluginFormcreatorSection"][data-id="' + sectionId + '"]');
section.find('[data-field="name"]').text(data);
section.find('> [data-field="name"]').text(data);
modalWindow.dialog('close');
});
}
Expand Down

0 comments on commit d6cb0db

Please sign in to comment.