[LON-CAPA-cvs] cvs: loncom /html/htmlarea htmlarea.js

www lon-capa-cvs@mail.lon-capa.org
Tue, 01 Jun 2004 22:37:38 -0000


www		Tue Jun  1 18:37:38 2004 EDT

  Modified files:              
    /loncom/html/htmlarea	htmlarea.js 
  Log:
  Graceful downgrading.
  
  
Index: loncom/html/htmlarea/htmlarea.js
diff -u loncom/html/htmlarea/htmlarea.js:1.1 loncom/html/htmlarea/htmlarea.js:1.2
--- loncom/html/htmlarea/htmlarea.js:1.1	Wed Feb 18 03:07:15 2004
+++ loncom/html/htmlarea/htmlarea.js	Tue Jun  1 18:37:37 2004
@@ -8,7 +8,7 @@
 // Version 3.0 developed by Mihai Bazon for InteractiveTools.
 //	     http://students.infoiasi.ro/~mishoo
 //
-// $Id: htmlarea.js,v 1.1 2004/02/18 08:07:15 www Exp $
+// $Id: htmlarea.js,v 1.2 2004/06/01 22:37:37 www Exp $
 
 // Creates a new HTMLArea object.  Tries to replace the textarea with the given
 // ID with it.
@@ -1346,13 +1346,13 @@
 HTMLArea.checkSupportedBrowser = function() {
 	if (HTMLArea.is_gecko) {
 		if (navigator.productSub < 20021201) {
-			alert("You need at least Mozilla-1.3 Alpha.\n" +
-			      "Sorry, your Gecko is not supported.");
+			window.status="You need at least Mozilla-1.3 Alpha. " +
+			      "Sorry, your Gecko is not supported.";
 			return false;
 		}
 		if (navigator.productSub < 20030210) {
-			alert("Mozilla < 1.3 Beta is not supported!\n" +
-			      "I'll try, though, but it might not work.");
+			window.status="Mozilla < 1.3 Beta is not supported! " +
+			      "I'll try, though, but it might not work.";
 		}
 	}
 	return HTMLArea.is_gecko || HTMLArea.is_ie;