Log Message:
-----------
Change the "return applet to virgin state" button into a submit button so that the action takes place immediately rather than after entering
an answer
Modified Files:
--------------
pg/macros:
AppletObjects.pl
Revision Data
-------------
Index: AppletObjects.pl
===================================================================
RCS file: /webwork/cvs/system/pg/macros/AppletObjects.pl,v
retrieving revision 1.20
retrieving revision 1.21
diff -Lmacros/AppletObjects.pl -Lmacros/AppletObjects.pl -u -r1.20 -r1.21
--- macros/AppletObjects.pl
+++ macros/AppletObjects.pl
@@ -184,7 +184,7 @@
my $state_input_element = ($debugMode) ? $debug_input_element :
qq!\n<input type="hidden" name = "$appletStateName" value ="$base_64_encoded_answer_value">!;
my $reset_button_str = ($reset_button) ?
- qq!<input type='button' value='return this question to its initial state' onClick="setAppletStateToRestart('$appletName')"><br/>!
+ qq!<input type='submit' name='previewAnswers' value='return this question to its initial state' onClick="setAppletStateToRestart('$appletName')"><br/>!
: '' ;
# <input type="button" value="reinitialize applet" onClick="getQE('$appletStateName').value='$base64_initialState'"/><br/>
# always base64 encode the hidden answer value to prevent problems with quotes.
|