Author: croberts
Date: 2011-05-25 13:22:58 +0000 (Wed, 25 May 2011)
New Revision: 4785
Modified:
trunk/cumin/resources/app.js
Log:
Now using Array.from instead of $A which is no longer supported in mootools.js 1.3.x
Modified: trunk/cumin/resources/app.js
===================================================================
--- trunk/cumin/resources/app.js 2011-05-25 13:01:06 UTC (rev 4784)
+++ trunk/cumin/resources/app.js 2011-05-25 13:22:58 UTC (rev 4785)
@@ -43,7 +43,7 @@
if (!(name in hash)) {
hash[name] = "";
}
- var vals = $A(hash[name].split('|'));
+ var vals = Array.from(hash[name].split('|'));
if ((vals.length == 1) && (vals[0] == ""))
vals.empty();
var valIndex = vals.indexOf(val);
@@ -74,7 +74,7 @@
if (document.forms.length > 0) {
var checks = document.forms[0].elements[key];
if (checks) {
- var vals = $A(hash[key].split('|'));
+ var vals = Array.from(hash[key].split('|'));
if ((vals.length == 1) && (vals[0] == ""))
vals.empty();
if (typeof checks.length == "undefined") {
Show replies by date