Skip to content

Commit

Permalink
fix(form_language): do not submit form when adding a translation
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Mar 21, 2022
1 parent 97124c4 commit 6d74fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/form_language.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public function showTranslations($options = []) {
. ' name="new_override"'
. ' class="vsubmit"'
. ' value="<i class=\'fas fa-plus\'></i>&nbsp;' . __('New translation', 'formcreator') . '"'
.' onclick="' . 'plugin_formcreator.newTranslation(' . $this->getID() . ')'
.' onclick="' . 'plugin_formcreator.newTranslation(' . $this->getID() . '); return false;'
. '"><i class=\'fas fa-plus\'></i>&nbsp;' . __('New translation', 'formcreator') . '</button>';
echo '</span>';
echo '<span class="plugin_formcreator_filter_translations">';
Expand Down

0 comments on commit 6d74fb8

Please sign in to comment.