Skip to content

Commit

Permalink
fix(question): update JS selectors for question edit
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jan 22, 2020
1 parent 69786c6 commit 0969ad1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inc/question.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ public function showForm($ID, $options = []) {
$form->getFromDBBySection($section);

$rand = mt_rand();
echo '<form name="plugin_formcreator_form" method="post" action="'.static::getFormURL().'">';
echo '<form name="plugin_formcreator_questionform" method="post" action="'.static::getFormURL().'">';
echo '<table class="tab_cadre_fixe">';

echo '<tr>';
Expand Down
4 changes: 2 additions & 2 deletions js/scripts.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,8 +1075,8 @@ function pluginFormcreatorInitializeUrgency(fieldName, rand) {
}

function plugin_formcreator_changeQuestionType(rand) {
var questionId = $('form[name="plugin_formcreator_form"] input[name="id"]').val();
var questionType = $ ('form[name="plugin_formcreator_form"] [name="fieldtype"]').val();
var questionId = $('form[name="plugin_formcreator_questionform"] input[name="id"]').val();
var questionType = $ ('form[name="plugin_formcreator_questionform"] [name="fieldtype"]').val();

$.ajax({
url: rootDoc + '/plugins/formcreator/ajax/question_design.php',
Expand Down

0 comments on commit 0969ad1

Please sign in to comment.