Log Message:
-----------
Updated to 2.1a, which fixes a problem with the domain checking when
the server is running on a non-standard port number.
Modified Files:
--------------
webwork-modperl/htdocs/jsMath:
jsMath.js
Revision Data
-------------
Index: jsMath.js
===================================================================
RCS file: /webwork/cvs/system/webwork-modperl/htdocs/jsMath/jsMath.js,v
retrieving revision 1.15
retrieving revision 1.16
diff -Lhtdocs/jsMath/jsMath.js -Lhtdocs/jsMath/jsMath.js -u -r1.15 -r1.16
--- htdocs/jsMath/jsMath.js
+++ htdocs/jsMath/jsMath.js
@@ -66,7 +66,7 @@
var jsMath = {
- version: "2.1", // change this if you edit the file
+ version: "2.1a", // change this if you edit the file
//
// Name of image files
@@ -333,6 +333,7 @@
Domain: function () {
var jsDomain = ''; var pageDomain = document.domain;
if (jsMath.root.match('://([^/]*)/')) {jsDomain = RegExp.$1}
+ jsDomain = jsDomain.replace(/:\d+$/,'');
if (jsDomain == "" || jsDomain == pageDomain) return;
//
// MSIE on the Mac can't change document.domain and 'try' won't
|