Changeset 314 in main


Ignore:
Timestamp:
09/22/11 09:25:03 (8 years ago)
Author:
pcosquer
Message:

fix bad ids

Location:
trunk/openPLM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/media/js/navigate.js

    r311 r314  
    7171        return cache[form]; 
    7272    } 
    73     var id = part.attr("id").split(":"); 
     73    var id = part.attr("id").split("_"); 
    7474    var type = id.slice(-2, -1); 
    7575    var id = id.slice(-1); 
     
    9595        return cache[form]; 
    9696    } 
    97     var id = plmobject.attr("id").split(":"); 
     97    var id = plmobject.attr("id").split("_"); 
    9898    var type = id.slice(-2, -1); 
    9999    var id = id.slice(-1); 
     
    115115 
    116116function show_add_child(part, form_child){ 
    117         var id = part.attr("id").split(":"); 
     117        var id = part.attr("id").split("_"); 
    118118    var type = id.slice(-2, -1); 
    119119    var id = id.slice(-1); 
     
    148148 
    149149function show_attach(plmobject, form_child){ 
    150         var id = plmobject.attr("id").split(":"); 
     150        var id = plmobject.attr("id").split("_"); 
    151151    var type = id.slice(-2, -1); 
    152152    var id = id.slice(-1); 
  • trunk/openPLM/plmapp/navigate.py

    r307 r314  
    308308        node.attr["label"] += "\\n" + encode(extra_label) 
    309309        t = type_.__name__.replace("Controller", "") 
    310         node.attr["id"] = ":".join((str(obj_id or obj.id), t, str(obj.id))) 
     310        node.attr["id"] = "_".join((str(obj_id or obj.id), t, str(obj.id))) 
    311311 
    312312    def convert_map(self, map_string): 
Note: See TracChangeset for help on using the changeset viewer.