Skip to content

Commit 0969ad1

Browse files
committed
fix(question): update JS selectors for question edit
Signed-off-by: Thierry Bugier <[email protected]>
1 parent 69786c6 commit 0969ad1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

inc/question.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ public function showForm($ID, $options = []) {
774774
$form->getFromDBBySection($section);
775775

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

780780
echo '<tr>';

js/scripts.js.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,8 +1075,8 @@ function pluginFormcreatorInitializeUrgency(fieldName, rand) {
10751075
}
10761076

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

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

0 commit comments

Comments
 (0)