Changeset d9af4a
- Timestamp:
- Nov 14, 2011, 10:25:34 AM (11 years ago)
- Branches:
- ng_0.9
- Children:
- 67fe6b
- Parents:
- db5435
- Location:
- content
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
content/prefDialog/vI_prefDialog.js
rdb5435 rd9af4a 24 24 25 25 virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) { 26 27 Components.utils.import("resource://gre/modules/AddonManager.jsm"); 28 26 29 var prefDialog = { 27 30 toggleHelp : function() { … … 237 240 238 241 smartReplyHideSignature : function() { 239 const switch_signature_ID="{2ab1b709-ba03-4361-abf9-c50b964ff75d}" 240 if (vI.helper.extensionActive(switch_signature_ID)) { 241 document.getElementById("VIdent_identity.HideSignature.warning").setAttribute("hidden", "true"); 242 document.getElementById("VIdent_identity.hide_signature").setAttribute("disabled", "false"); 243 } 242 // check for signature_switch extension 243 AddonManager.getAddonByID("{2ab1b709-ba03-4361-abf9-c50b964ff75d}", function(addon) { 244 if (addon && !addon.userDisabled && !addon.appDisable) { 245 document.getElementById("VIdent_identity.HideSignature.warning").setAttribute("hidden", "true"); 246 document.getElementById("VIdent_identity.hide_signature").setAttribute("disabled", "false"); 247 } 248 }); 244 249 }, 245 250 … … 309 314 vI.onInitCopiesAndFolders() 310 315 311 const enigmail_ID="{847b3a00-7ab1-11d4-8f02-006008948af5}" 312 if (!vI.helper.extensionActive(enigmail_ID)) { 313 document.getElementById("openPGPencryption").setAttribute("hidden", "true"); 314 document.getElementById("VIdent_identity.hide_openPGP_messageSignature").setAttribute("hidden", "true"); 315 } 316 316 // check for enigmail extension 317 AddonManager.getAddonByID("{847b3a00-7ab1-11d4-8f02-006008948af5}", function(addon) { 318 if (addon && !addon.userDisabled && !addon.appDisable) { 319 document.getElementById("openPGPencryption").removeAttribute("hidden"); 320 document.getElementById("VIdent_identity.hide_openPGP_messageSignature").removeAttribute("hidden"); 321 } 322 }); 323 317 324 prefDialog.base.smartReplyConstraint(document.getElementById("VIdent_identity.smart_reply")); 318 325 prefDialog.base.smartReplyHideSignature(); -
content/prefDialog/vI_prefDialog.xul
rdb5435 rd9af4a 364 364 prefstring="hide_sMime_messageSignature"/> 365 365 <checkbox id="VIdent_identity.hide_openPGP_messageSignature" label="&vI_prefDialog.composeDialog.HideOpenPGPSignature.label;" 366 prefstring="hide_openPGP_messageSignature" />366 prefstring="hide_openPGP_messageSignature" hidden="true"/> 367 367 <checkbox id="VIdent_identity.autoReplyToSelf" label="&vI_prefDialog.composeDialog.autoReplyToSelf.label;" 368 368 prefstring="autoReplyToSelf"/> … … 658 658 <checkbox id="VIdent_identity.storageExtras_sMime_messageSignature" label="&vI_prefDialog.storageExtras.sMime.messageSignature.label;" 659 659 prefstring="storageExtras_sMime_messageSignature"/> 660 </vbox><spacer flex="1"/><vbox id="openPGPencryption" >660 </vbox><spacer flex="1"/><vbox id="openPGPencryption" hidden="true"> 661 661 <label value="&vI_prefDialog.storageExtras.openPGP.label;"/> 662 662 <checkbox id="VIdent_identity.storageExtras_openPGP_messageEncryption" label="&vI_prefDialog.storageExtras.openPGP.messageEncryption.label;" -
content/vI_storage.js
rdb5435 rd9af4a 29 29 30 30 virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) { 31 32 Components.utils.import("resource://gre/modules/AddonManager.jsm"); 33 31 34 var storage = { 32 35 focusedElement : null, … … 115 118 116 119 // reset unavailable storageExtras preferences 117 const enigmail_ID="{847b3a00-7ab1-11d4-8f02-006008948af5}" 118 if (!vI.helper.extensionActive(enigmail_ID)) {119 120 121 122 123 }, 124 120 AddonManager.getAddonByID("{847b3a00-7ab1-11d4-8f02-006008948af5}", function(addon) { 121 if (addon && !addon.userDisabled && !addon.appDisable) { 122 vI.main.preferences.setBoolPref("storageExtras_openPGP_messageEncryption", false) 123 vI.main.preferences.setBoolPref("storageExtras_openPGP_messageSignature", false) 124 vI.main.preferences.setBoolPref("storageExtras_openPGP_PGPMIME", false) 125 } 126 }); 127 }, 125 128 126 129 firstUsedInputElement : null, // this stores the first Element for which a Lookup in the Storage was successfull -
content/vI_upgrade.js
rdb5435 rd9af4a 172 172 "storage_use_for_smart_reply") }, 173 173 { version : "0.5.3", prefs : Array("storage_use_for_smart_reply") }, 174 { version : "0.5.6", prefs : Array("copyEnigmailSettings") } ]; 174 { version : "0.5.6", prefs : Array("copyEnigmailSettings") }, 175 { version: "0.9", prefs : Array("extensions.virtualIdentity.{2ab1b709-ba03-4361-abf9-c50b964ff75d}", 176 "extensions.virtualIdentity.{847b3a00-7ab1-11d4-8f02-006008948af5}", 177 "extensions.virtualIdentity.smart_reply_added_extraHeaders", 178 "mailnews.headers.extraExpandedHeaders") } 179 ]; 175 180 // remove obsolete preference-tree virtualIdentity 176 181 for (var i = 0; i < obsoletePrefs.length; i++) { -
content/vI_upgradeOverlay.js
rdb5435 rd9af4a 46 46 Components.utils.import("resource://gre/modules/AddonManager.jsm"); 47 47 48 const switch_signature_ID="{2ab1b709-ba03-4361-abf9-c50b964ff75d}"49 prefroot.setBoolPref("extensions.virtualIdentity." + switch_signature_ID, false)50 AddonManager.getAddonByID(switch_signature_ID, function(addon) {51 if (addon) prefroot.setBoolPref("extensions.virtualIdentity." + switch_signature_ID, addon.userDisabled || addon.appDisabled ? false : true)52 });53 54 const enigmail_ID="{847b3a00-7ab1-11d4-8f02-006008948af5}"55 prefroot.setBoolPref("extensions.virtualIdentity." + enigmail_ID, false)56 AddonManager.getAddonByID(enigmail_ID, function(addon) {57 if (addon) prefroot.setBoolPref("extensions.virtualIdentity." + enigmail_ID, addon.userDisabled || addon.appDisabled ? false : true)58 });59 60 48 const virtualIdentity_ID="{dddd428e-5ac8-4a81-9f78-276c734f75b8}" 61 49 AddonManager.getAddonByID(virtualIdentity_ID, function(addon) {
Note: See TracChangeset
for help on using the changeset viewer.