On my machine, this was required to make datagrid drilldown work;
"class" is reserved, I guess?

--- ./pub/scripts/weblocks.js   2010-05-06 01:59:41.000000000 -0700
+++ ./pub/scripts/weblocks.js.orig      2010-05-06 01:59:36.000000000 -0700
@@ -217,13 +217,13 @@
 }

 /* working with CSS classes */
-function addClass(el,myClass){
-  if ((hasClass(el,myClass)) || (typeof el == 'undefined'))
+function addClass(el,class){
+  if ((hasClass(el,class)) || (typeof el == 'undefined'))
     return;
-  el.className += " " + myClass;
+  el.className += " " + class;
 }

-function removeClass(el,myClass){
+function removeClass(el,class){
   if (typeof el=='undefined')
     return;
   if (el.getAttribute('class') === null)
@@ -233,21 +233,21 @@
   var result=[];

   for (i=classes.length;i>=0;i--) {
-    if (classes[i] != myClass)
+    if (classes[i] != class)
       result.push(classes[i]);
   }

   el.setAttribute('class', result.join(" ")); /* FIXME: ie6/7 need className 
here */
 }

-function hasClass(el, myClass){
+function hasClass(el, class){
   if ((el.className === null) || (typeof el == 'undefined'))
     return false;

   var classes = el.className.split(" ");

   for (i=classes.length;i>=0;i--) {
-    if (classes[i] == myClass)
+    if (classes[i] == class)
       return true;
   }

-- 
You received this message because you are subscribed to the Google Groups 
"weblocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/weblocks?hl=en.

Reply via email to