Author: jmorliaguet
Date: Sat Feb 11 16:53:25 2006
New Revision: 2355

Modified:
   cpsskins/branches/jmo-perspectives/ui/framework/ctal.js
Log:

- this fixes the tests on Opera



Modified: cpsskins/branches/jmo-perspectives/ui/framework/ctal.js
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/framework/ctal.js     (original)
+++ cpsskins/branches/jmo-perspectives/ui/framework/ctal.js     Sat Feb 11 
16:53:25 2006
@@ -174,12 +174,16 @@
       for (i=0; i<attrs.length; i++) {
         var attrnode = attrs[i];
         var attrname = attrnode.nodeName;
-        if (attrname != ctal_attr) {
+        if (attrname != "ctal:" + ctal_attr) {
           continue;
         }
+        tmpl.removeAttribute("ctal:" + ctal_attr);
+        // For Opera
         tmpl.removeAttribute(ctal_attr);
+
         var parser = parsers[ctal_attr];
         parser(tmpl, attrnode.value, data)
+        break;
       }
     }
   }
@@ -240,11 +244,11 @@
 }
 
 ctal.parsers = {
-  "ctal:condition": ctal.tal_condition,
-  "ctal:repeat": ctal.tal_repeat,
-  "ctal:content": ctal.tal_content,
-  "ctal:attributes": ctal.tal_attributes,
-  "ctal:omit-tag": ctal.tal_omit_tag,
-  "ctal:replace": ctal.tal_replace
+  "condition": ctal.tal_condition,
+  "repeat": ctal.tal_repeat,
+  "content": ctal.tal_content,
+  "attributes": ctal.tal_attributes,
+  "omit-tag": ctal.tal_omit_tag,
+  "replace": ctal.tal_replace
   };
 
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to