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

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


albertel		Fri Aug 27 18:12:39 2004 EDT

  Modified files:              
    /loncom/interface	lonfeedback.pm 
  Log:
  - bug#3385, non-htmlarea feedback fails on IE
  
  
Index: loncom/interface/lonfeedback.pm
diff -u loncom/interface/lonfeedback.pm:1.117 loncom/interface/lonfeedback.pm:1.118
--- loncom/interface/lonfeedback.pm:1.117	Wed Aug 18 22:08:27 2004
+++ loncom/interface/lonfeedback.pm	Fri Aug 27 18:12:39 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Feedback
 #
-# $Id: lonfeedback.pm,v 1.117 2004/08/19 02:08:27 albertel Exp $
+# $Id: lonfeedback.pm,v 1.118 2004/08/27 22:12:39 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1355,7 +1355,7 @@
         }
 
         if (rec) {
-            if (typeof(document.mailform.onsubmit)!='undefined') {
+            if (typeof(document.mailform.onsubmit)=='function') {
 		document.mailform.onsubmit();
 	    }
 	    document.mailform.submit();
@@ -2453,7 +2453,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
 }