[LON-CAPA-cvs] cvs: loncom /interface lonfeedback.pm
www
lon-capa-cvs@mail.lon-capa.org
Wed, 02 Jun 2004 16:47:34 -0000
www Wed Jun 2 12:47:34 2004 EDT
Modified files:
/loncom/interface lonfeedback.pm
Log:
Preview button works now. Only hoping that not some other browsers actually
submit their form when calling their onSubmit method.
Index: loncom/interface/lonfeedback.pm
diff -u loncom/interface/lonfeedback.pm:1.86 loncom/interface/lonfeedback.pm:1.87
--- loncom/interface/lonfeedback.pm:1.86 Wed Jun 2 12:41:46 2004
+++ loncom/interface/lonfeedback.pm Wed Jun 2 12:47:33 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Feedback
#
-# $Id: lonfeedback.pm,v 1.86 2004/06/02 16:41:46 www Exp $
+# $Id: lonfeedback.pm,v 1.87 2004/06/02 16:47:33 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -883,7 +883,7 @@
<input type="hidden" name="subject">
<input type="hidden" name="comment" />
<input type="button" value="$pre"
-onClick="this.form.comment.value=document.mailform.comment.value;this.form.subject.value=document.mailform.subject.value;this.form.submit();" />
+onClick="document.mailform.onsubmit();this.form.comment.value=document.mailform.comment.value;this.form.subject.value=document.mailform.subject.value;this.form.submit();" />
</form>
ENDPREVIEW
}