Changeset 3159a7


Ignore:
Timestamp:
Jan 20, 2009, 3:56:45 AM (13 years ago)
Author:
rene <rene@…>
Branches:
lite_0.1, multiEdit, ng_0.6, ng_0.6_help, ng_0.8, ng_0.9
Children:
69321c
Parents:
06d7d5
Message:

support to support rdf 0.0.3

Location:
chrome/content/v_identity
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_rdfDataEditor.js

    r06d7d5 r3159a7  
    2525var vI_rdfDataEditor = {
    2626    __rdfDatasource : null,
     27    __rdfDataTree : null,
    2728    __type : null,
    2829    __recipient : null,
     
    3435        vI_rdfDataEditor.__type = window.arguments[1];
    3536        vI_rdfDataEditor.__rdfDatasource = window.arguments[2];
    36 
     37        vI_rdfDataEditor.__rdfDataTree = window.arguments[3];
     38       
    3739        document.getElementById("recipient").value = vI_rdfDataEditor.__recipient;
    3840       
     
    9698            vI_rdfDataEditor.storageExtras)
    9799
    98         // if current Type and previous Type are different, remove previous resource
    99         vI_rdfDataEditor.__rdfDatasource.removeRDF(vI_rdfDataEditor.__recipient,
    100                 vI_rdfDataEditor.__type);
    101 
    102         vI_rdfDataEditor.__rdfDatasource.updateRDF(document.getElementById("recipient").value,
     100        vI_rdfDataEditor.__rdfDatasource.updateRDF(
     101                document.getElementById("recipient").value,
    103102                document.getElementById("type_menu").selectedItem.getAttribute("key"),
    104                 localIdentityData, true);
    105 
     103                localIdentityData,
     104                true, vI_rdfDataEditor.__recipient, vI_rdfDataEditor.__type);
     105       
    106106        return document.getElementById("type_menu").selectedItem.getAttribute("key");
    107107    }
  • chrome/content/v_identity/vI_rdfDataEditor.xul

    r06d7d5 r3159a7  
    3232<dialog id="vI_rdfDataEditor"
    3333    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    34     ondialogaccept="return vI_rdfDataEditor.accept();"
     34    ondialogaccept="window.arguments[3].treeType = vI_rdfDataEditor.accept();"
    3535    title="&vI_rdfDataEditor.dlgTitle.label;" >
    3636
Note: See TracChangeset for help on using the changeset viewer.