Changeset dd3c77


Ignore:
Timestamp:
Jul 17, 2009, 8:03:13 PM (12 years ago)
Author:
rene <rene@…>
Branches:
lite_0.1, multiEdit, ng_0.6, ng_0.6_help, ng_0.8, ng_0.9
Children:
48f9f5
Parents:
f2b2cb
Message:

repaired creation of new items in storage-dialog

Location:
chrome/content/v_identity
Files:
2 edited

Legend:

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

    rf2b2cb rdd3c77  
    4646
    4747    init : function() {
    48         vI_rdfDataEditor.__recipient = window.arguments[0]["recipientCol"];
     48        if (window.arguments[0]["recipientCol"])
     49            vI_rdfDataEditor.__recipient = window.arguments[0]["recipientCol"];
    4950        vI_rdfDataEditor.__type = window.arguments[1];
    5051        vI_rdfDataEditor.__rdfDatasource = window.arguments[2];
  • chrome/content/v_identity/vI_rdfDataTree.js

    rf2b2cb rdd3c77  
    430430    newItem : function() {
    431431        var treeType = vI_rdfDataTree.tabbox.selectedPanel.id;
    432         var newItemPreset = {
    433                 recipientCol : "",
    434                 senderCol : "",
    435                 smtpKey : "",
    436                 idKey : gAccountManager.defaultAccount.defaultIdentity.key,
    437                 resource : null }
     432        var newItemPreset = { identityData : new identityData ("", null, null, null, null, null) };
    438433        // XXXX create useful preset
    439434        var retVar = { treeType: null };
     435
    440436        window.openDialog("chrome://v_identity/content/vI_rdfDataEditor.xul",0,
    441437            "chrome, dialog, modal, alwaysRaised, resizable=yes",
    442438            newItemPreset, treeType,
    443439            vI_rdfDatasource, retVar).focus();
     440
    444441        // reload all trees (multiple types might have changed)
    445442        for each (var treeType in vI_rdfDataTree.treeTypes) {
Note: See TracChangeset for help on using the changeset viewer.