This is just some static backup of the original site, don't expect every link to work!

Ignore:
Timestamp:
Nov 26, 2011, 6:53:31 PM (11 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
826c34
Parents:
99ced4
Message:

tons of changes, mostly namespace-related

File:
1 edited

Legend:

Unmodified
Added
Removed
  • content/vI_rdfAccountMismatchDialog.js

    r99ced4 rf29419  
    2525Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2626virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
     27let Log = vI.setupLogging("virtualIdentity.rdfAccountMismatchDialog");
     28
    2729var rdfAccountMismatchDialog = {
    2830    mismatchItems : null,
     
    3234        rdfAccountMismatchDialog.type = window.arguments[0];
    3335        rdfAccountMismatchDialog.mismatchItems = window.arguments[1];
    34        
     36
    3537        // display the relevant help-tags
    36         document.getElementById("rdfAccountMismatchDialog_vbox_" + rdfAccountMismatchDialog.type).removeAttribute("hidden");
    37         document.getElementById("rdfAccountMismatchDialog_listhead_" + rdfAccountMismatchDialog.type).removeAttribute("hidden");
     38        document.getElementById("virtualIdentityExtension_rdfAccountMismatchDialog_vbox_" + rdfAccountMismatchDialog.type).removeAttribute("hidden");
     39        document.getElementById("virtualIdentityExtension_rdfAccountMismatchDialog_listhead_" + rdfAccountMismatchDialog.type).removeAttribute("hidden");
    3840       
    3941        for (var i = 0; i < rdfAccountMismatchDialog.mismatchItems.length; i++) {
    4042//             var label = document.createElement("label");
     43            Log.debug("adding line " + i + " for label " + rdfAccountMismatchDialog.mismatchItems[i].label + "\n");
     44       
    4145            var listitem = document.createElement("listitem");
    42             listitem.setAttribute("id", "mismatchLine_" + i);
     46            listitem.setAttribute("id", "virtualIdentityExtension_mismatchLine_" + i);
    4347            listitem.setAttribute("class", "mismatchLine");
    4448            listitem.setAttribute("type",rdfAccountMismatchDialog.type);
     
    4852            listitem.setAttribute("ext2",rdfAccountMismatchDialog.mismatchItems[i].ext2);
    4953            listitem.setAttribute("count",rdfAccountMismatchDialog.mismatchItems[i].count);
    50             document.getElementById("rdfAccountMismatchDialog_listbox").appendChild(listitem)
     54            document.getElementById("virtualIdentityExtension_rdfAccountMismatchDialog_listbox").appendChild(listitem)
     55            Log.debug("line added\n");
    5156        }
    5257    },
     
    5459    accept : function() {
    5560        for (var i = 0; i < rdfAccountMismatchDialog.mismatchItems.length; i++) {
    56             rdfAccountMismatchDialog.mismatchItems[i].key = document.getElementById("mismatchLine_" + i).key
     61            rdfAccountMismatchDialog.mismatchItems[i].key = document.getElementById("virtualIdentityExtension_mismatchLine_" + i).key
    5762        }
    5863        /* window.argument[2] stores callback parent */
Note: See TracChangeset for help on using the changeset viewer.