Builder/LeftTree.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 4 May 2010 08:49:42 +0000 (16:49 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 4 May 2010 08:49:42 +0000 (16:49 +0800)
Builder/LeftTree.js

index 15ff2ad..aced78e 100755 (executable)
@@ -451,15 +451,16 @@ LeftTree = new XObject(
                         
                         findDropNode : function (treepath_str, targets)
                         {
+                            var path = treepath_str.replace(/^builder-/, '');
                             
                             if (!XObject.keys(this.treemap).length) {
                                 print("NO KEYS");
                                 return [ '',  Gtk.TreeViewDropPosition.INTO_OR_AFTER];
                             }
-                            print("FIND treepath: " + treepath_str);
+                            print("FIND treepath: " + path);
                             //console.dump(this.treemap);
                              
-                            return this.findDropNodeByPath(treepath_str,targets) 
+                            return this.findDropNodeByPath(path,targets) 
                         },
                         findDropNodeByPath : function (treepath_str, targets, pref)
                         {