builder.html.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 10 May 2010 05:59:35 +0000 (13:59 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 10 May 2010 05:59:35 +0000 (13:59 +0800)
builder.html.js

index 4d771cd..1fdc13d 100644 (file)
@@ -313,14 +313,18 @@ Builder  = {
             return true;
         }
         // needs fixing..
-        console.log(ftg.dom.className);
-        var cmat = ftg.dom.className.match(/x-grid-hd-builder-(form-gen-[0-9:]+)/);
-        
-        if (cmat) {
-            this[method]( cmat[1] );
-            return true;
+        if (ftg.dom.className.match(/[0-9]+/)) {
+            console.log(ftg.dom.className);
+            var cmat = ftg.dom.className.match(/x-grid-hd-builder-(form-gen-[0-9:]+)/);
+            if (cmat) {
+                this[method]( cmat[1] );
+                return true;
+            }
         }
         
+        
+        
+        
         return false;
     },