Changeset 16f697


Ignore:
Timestamp:
Sep 2, 2008, 5:28:39 PM (11 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
86c311
Parents:
f382e7
Message:

while storing, if base-id's are different and not to be saved, remove previously stored base-id

Location:
chrome
Files:
5 edited

Legend:

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

    rf382e7 r16f697  
    8686    accept : function() {
    8787        var address = vI_helper.parseAddress(document.getElementById("sender").value)
    88        
    89         if (window.arguments[0]["resource"])
    90             vI_rdfDataEditor.__rdfDatasource.removeVIdentityFromRDF(window.arguments[0]["resource"])
    91            
     88                   
    9289        vI_rdfDataEditor.storageExtras.readEditorValues();
    9390       
  • chrome/content/v_identity/vI_rdfDatasource.js

    rf382e7 r16f697  
    237237        var resource = vI_rdfDatasource.__getRDFResourceForVIdentity(recDescription, recType);
    238238        if (!resource) return;
     239        else vI_rdfDatasource.removeVIdentityFromRDF(resource); // just to have a clean base
     240
    239241        vI_notificationBar.dump("## vI_rdfDatasource: updateRDF " + resource.ValueUTF8 + ".\n");
    240242        vI_rdfDatasource.__setRDFValue(resource, "email", localIdentityData.email)
  • chrome/content/v_identity/vI_storage.js

    rf382e7 r16f697  
    174174        this.__setLabels();
    175175        var string = "";
     176        var saveBaseId = (vI_statusmenu.objSaveBaseIDMenuItem.getAttribute("checked") == "true")
    176177        for each (item in Items) {
    177178            var classEqual = (this.comp.equals[item])?"equal":"unequal";
     179            var classBaseID = ((!saveBaseId) && (item == "idName"))?"ignoreBaseId":""
    178180            string += "<tr>" +
    179181                "<td class='col1 " + classEqual + "'>" + this.comp.labels[item] + "</td>" +
    180                 "<td class='col2 " + classEqual + "'>" + this.comp.compareID[item].replace(/>/g,"&gt;").replace(/</g,"&lt;") + "</td>" +
    181                 "<td class='col3 " + classEqual + "'>" + this[item].replace(/>/g,"&gt;").replace(/</g,"&lt;") + "</td>" +
     182                "<td class='col2 " + classEqual + " " + classBaseID + "'>" + this.comp.compareID[item].replace(/>/g,"&gt;").replace(/</g,"&lt;") + "</td>" +
     183                "<td class='col3 " + classEqual + " " + classBaseID + "'>" + this[item].replace(/>/g,"&gt;").replace(/</g,"&lt;") + "</td>" +
    182184                "</tr>"
    183185        }
  • chrome/content/v_identity/vI_upgrade.js

    rf382e7 r16f697  
    117117   
    118118    __removeQuotesFromResourceNameCallback : function(resource, type, name, localIdentityData) {
    119         vI_rdfDatasource.removeVIdentityFromRDF(resource);
    120119        vI_rdfDatasource.updateRDF(name, type, localIdentityData);
    121120        vI_notificationBar.quiet = null;
  • chrome/skin/classic/v_identity/vI_DialogBrowser.css

    rf382e7 r16f697  
    7373}
    7474
     75.updateStorage .ignoreBaseId.col2 {
     76    font-weight: normal;
     77    text-decoration: line-through;
     78}
     79
    7580.question {
    7681    text-align: right;
Note: See TracChangeset for help on using the changeset viewer.