Changeset f29419 for content/vI_rdfAccountMismatchDialog.js
- Timestamp:
- Nov 26, 2011, 6:53:31 PM (11 years ago)
- Branches:
- ng_0.9
- Children:
- 826c34
- Parents:
- 99ced4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
content/vI_rdfAccountMismatchDialog.js
r99ced4 rf29419 25 25 Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js"); 26 26 virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) { 27 let Log = vI.setupLogging("virtualIdentity.rdfAccountMismatchDialog"); 28 27 29 var rdfAccountMismatchDialog = { 28 30 mismatchItems : null, … … 32 34 rdfAccountMismatchDialog.type = window.arguments[0]; 33 35 rdfAccountMismatchDialog.mismatchItems = window.arguments[1]; 34 36 35 37 // 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"); 38 40 39 41 for (var i = 0; i < rdfAccountMismatchDialog.mismatchItems.length; i++) { 40 42 // var label = document.createElement("label"); 43 Log.debug("adding line " + i + " for label " + rdfAccountMismatchDialog.mismatchItems[i].label + "\n"); 44 41 45 var listitem = document.createElement("listitem"); 42 listitem.setAttribute("id", " mismatchLine_" + i);46 listitem.setAttribute("id", "virtualIdentityExtension_mismatchLine_" + i); 43 47 listitem.setAttribute("class", "mismatchLine"); 44 48 listitem.setAttribute("type",rdfAccountMismatchDialog.type); … … 48 52 listitem.setAttribute("ext2",rdfAccountMismatchDialog.mismatchItems[i].ext2); 49 53 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"); 51 56 } 52 57 }, … … 54 59 accept : function() { 55 60 for (var i = 0; i < rdfAccountMismatchDialog.mismatchItems.length; i++) { 56 rdfAccountMismatchDialog.mismatchItems[i].key = document.getElementById(" mismatchLine_" + i).key61 rdfAccountMismatchDialog.mismatchItems[i].key = document.getElementById("virtualIdentityExtension_mismatchLine_" + i).key 57 62 } 58 63 /* window.argument[2] stores callback parent */
Note: See TracChangeset
for help on using the changeset viewer.