Changeset c3feaa for chrome/content/v_identity/vI_smartReplyDialog.js
- Timestamp:
- Aug 16, 2011, 10:12:23 PM (11 years ago)
- Branches:
- ng_0.8, ng_0.9
- Children:
- 190674
- Parents:
- 92fd25
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chrome/content/v_identity/vI_smartReplyDialog.js
r92fd25 rc3feaa 23 23 * ***** END LICENSE BLOCK ***** */ 24 24 25 var vI_smartReply_dialog = { 25 virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) { 26 var smartReply_dialog = { 26 27 Obj_radioGroup : null, 27 28 all_addresses : null, 28 29 29 30 init : function() { 30 vI_smartReply_dialog.Obj_radioGroup = document.getElementById("replySelector.radiogroup");31 vI_smartReply_dialog.all_addresses = window.arguments[0];32 for (var index = 0; index < vI_smartReply_dialog.all_addresses.number; index++) {33 var menuentry = vI_smartReply_dialog.all_addresses.identityDataCollection[index].combinedName;31 smartReply_dialog.Obj_radioGroup = document.getElementById("replySelector.radiogroup"); 32 smartReply_dialog.all_addresses = window.arguments[0]; 33 for (var index = 0; index < smartReply_dialog.all_addresses.number; index++) { 34 var menuentry = smartReply_dialog.all_addresses.identityDataCollection[index].combinedName; 34 35 35 36 var id = null; var smtp = null; 36 37 37 if ( vI_smartReply_dialog.all_addresses.identityDataCollection[index].id)38 id = vI_smartReply_dialog.all_addresses.identityDataCollection[index].id.value;39 if ( vI_smartReply_dialog.all_addresses.identityDataCollection[index].smtp)40 smtp = vI_smartReply_dialog.all_addresses.identityDataCollection[index].smtp.value;38 if (smartReply_dialog.all_addresses.identityDataCollection[index].id) 39 id = smartReply_dialog.all_addresses.identityDataCollection[index].id.value; 40 if (smartReply_dialog.all_addresses.identityDataCollection[index].smtp) 41 smtp = smartReply_dialog.all_addresses.identityDataCollection[index].smtp.value; 41 42 42 43 menuentry += (id?" (" + id + "," + 43 44 (smtp?smtp:document.getElementById("bundle_messenger").getString("defaultServerTag")) + 44 45 ")":"") 45 vI_smartReply_dialog.add_row(menuentry);46 smartReply_dialog.add_row(menuentry); 46 47 } 47 48 }, … … 50 51 var radio = document.createElement("radio"); 51 52 radio.setAttribute("label",combinedName); 52 vI_smartReply_dialog.Obj_radioGroup.appendChild(radio);53 smartReply_dialog.Obj_radioGroup.appendChild(radio); 53 54 }, 54 55 55 56 accept : function() { 56 57 /* window.argument[1] stores callback function */ 57 window.arguments[1]( vI_smartReply_dialog.all_addresses, vI_smartReply_dialog.Obj_radioGroup.selectedIndex);58 window.arguments[1](smartReply_dialog.all_addresses, smartReply_dialog.Obj_radioGroup.selectedIndex); 58 59 document.documentElement.acceptDialog(); 59 60 } 60 61 } 61 window.addEventListener("load", vI_smartReply_dialog.init, false); 62 window.addEventListener("load", smartReply_dialog.init, false); 63 }});
Note: See TracChangeset
for help on using the changeset viewer.