@@ -89,10 +89,9 @@ protected function definition_inner($mform) {
8989 $ mform ->setDefault ('sampleanswer ' , '' );
9090 $ mform ->addElement ('static ' , 'spinner ' , '' , '<div class ="hide col-md-9" id="id_spinner"></div> ' );
9191
92- $ mform ->addElement ('button ' , 'sampleanswerbtn" ' , get_string ('sampleanswerevaluate ' , 'qtype_aitext ' ), );
92+ $ mform ->addElement ('button ' , 'sampleanswerbtn ' , get_string ('sampleanswerevaluate ' , 'qtype_aitext ' ));
9393 $ mform ->registerNoSubmitButton ('sampleanswerbtn" ' );
9494
95-
9695 $ options = [
9796 'cols ' => 50 ,
9897 'rows ' => 5 ,
@@ -101,7 +100,6 @@ protected function definition_inner($mform) {
101100
102101 $ mform ->addElement ('textarea ' , 'sampleanswereval ' , get_string ('sampleanswereval ' , 'qtype_aitext ' ), $ options );
103102
104-
105103 $ mform ->setDefault ('element_name ' , 'The default value ' );
106104
107105 $ mform ->addElement ('header ' , 'responseoptions ' , get_string ('responseoptions ' , 'qtype_aitext ' ));
@@ -147,7 +145,7 @@ protected function definition_inner($mform) {
147145 ['rows ' => 10 ], $ this ->editoroptions );
148146
149147 // Load any JS that we need to make things happen, specifically the prompt tester.
150- $ PAGE ->requires ->js_call_amd ('qtype_aitext/responserun ' ,'init ' , [$ this ->context ->id ]);
148+ $ PAGE ->requires ->js_call_amd ('qtype_aitext/responserun ' , 'init ' , [$ this ->context ->id ]);
151149
152150 }
153151
0 commit comments