Changeset 509348 for modules/vI_replyToSelf.js
- Timestamp:
- Nov 3, 2014, 12:35:40 PM (8 years ago)
- Branches:
- ng_0.9
- Children:
- 7204cb
- Parents:
- 3c9c29
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/vI_replyToSelf.js
r3c9c29 r509348 25 25 var EXPORTED_SYMBOLS = ["initReplyTo", "addReplyToSelf"] 26 26 27 const {classes: Cc, interfaces: Ci, utils: Cu, results : Cr} = Components; 27 const { 28 classes: Cc, 29 interfaces: Ci, 30 utils: Cu, 31 results: Cr 32 } = Components; 28 33 Cu.import("resource://v_identity/vI_prefs.js"); 29 34 Cu.import("resource://v_identity/vI_log.js"); … … 35 40 replyToSelfObj.removeAttribute("hidden"); 36 41 removeAllReplyTos(vIcomposeWindow, replyToSelfObj); 37 } 38 else 42 } else 39 43 replyToSelfObj.setAttribute("hidden", "true"); 40 44 }; … … 42 46 function removeAllReplyTos(vIcomposeWindow, replyToSelfObj) { 43 47 if (!replyToSelfObj.hasAttribute("hidden")) { 44 for (var row = 1; row <= vIcomposeWindow.top.MAX_RECIPIENTS; row 48 for (var row = 1; row <= vIcomposeWindow.top.MAX_RECIPIENTS; row++) { 45 49 var awType = vIcomposeWindow.awGetPopupElement(row).selectedItem.getAttribute("value"); 46 50 if (awType == "addr_reply") { … … 55 59 let replyToSelfObj = vIcomposeWindow.document.getElementById("virtualIdentityExtension_autoReplyToSelfLabel"); 56 60 if (!replyToSelfObj.hasAttribute("hidden")) { 57 vIcomposeWindow.awAddRecipient("addr_reply", vIcomposeWindow.document.getElementById("virtualIdentityExtension_msgIdentityClone").label);61 vIcomposeWindow.awAddRecipient("addr_reply", vIcomposeWindow.document.getElementById("virtualIdentityExtension_msgIdentityClone").label); 58 62 Log.debug("added ReplyToSelf"); 59 replyToSelfObj.setAttribute("hidden", "true");63 replyToSelfObj.setAttribute("hidden", "true"); 60 64 } 61 65 };
Note: See TracChangeset
for help on using the changeset viewer.