[LON-CAPA-cvs] cvs: loncom(version_1_2_X) /interface lonfeedback.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 27 Aug 2004 22:13:24 -0000


albertel		Fri Aug 27 18:13:24 2004 EDT

  Modified files:              (Branch: version_1_2_X)
    /loncom/interface	lonfeedback.pm 
  Log:
  - backport 1.113
  
  
Index: loncom/interface/lonfeedback.pm
diff -u loncom/interface/lonfeedback.pm:1.99.2.2 loncom/interface/lonfeedback.pm:1.99.2.3
--- loncom/interface/lonfeedback.pm:1.99.2.2	Tue Jul 27 10:29:03 2004
+++ loncom/interface/lonfeedback.pm	Fri Aug 27 18:13:24 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Feedback
 #
-# $Id: lonfeedback.pm,v 1.99.2.2 2004/07/27 14:29:03 albertel Exp $
+# $Id: lonfeedback.pm,v 1.99.2.3 2004/08/27 22:13:24 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -595,7 +595,7 @@
         }
 
         if (rec) {
-            if (typeof(document.mailform.onsubmit)!='undefined') {
+            if (typeof(document.mailform.onsubmit)=='function') {
 		document.mailform.onsubmit();
 	    }
 	    document.mailform.submit();
@@ -1117,7 +1117,7 @@
 <input type="hidden" name="subject">
 <input type="hidden" name="comment" />
 <input type="button" value="$pre"
-onClick="if (typeof(document.mailform.onsubmit)!='undefined') {document.mailform.onsubmit();};this.form.comment.value=document.mailform.comment.value;this.form.subject.value=document.mailform.subject.value;this.form.submit();" />
+onClick="if (typeof(document.mailform.onsubmit)=='fuction') {document.mailform.onsubmit();};this.form.comment.value=document.mailform.comment.value;this.form.subject.value=document.mailform.subject.value;this.form.submit();" />
 </form>
 ENDPREVIEW
 }