Changeset c8e38d


Ignore:
Timestamp:
Apr 12, 2010, 1:47:52 PM (12 years ago)
Author:
rene <rene@…>
Branches:
multiEdit, ng_0.6, ng_0.8, ng_0.9
Children:
72805d, 866fc1
Parents:
01d590
Message:

better execute functions - not only look at them :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_storageExtras.js

    r01d590 rc8e38d  
    6464    this.extras = [
    6565        new vI_storageExtras_checkbox(
    66             "reciept", "storageExtras_returnReciept", "returnReceiptMenu", null, function() { return identity.requestReturnReceipt; }),
    67         new vI_storageExtras_checkbox(
    68             "fcc", "storageExtras_fcc", "fcc_switch", null, function() { return identity.doFcc; }),
     66            "reciept", "storageExtras_returnReciept", "returnReceiptMenu", null, function(identity) { return identity.requestReturnReceipt; }),
     67        new vI_storageExtras_checkbox(
     68            "fcc", "storageExtras_fcc", "fcc_switch", null, function(identity) { return identity.doFcc; }),
    6969        new vI_storageExtras_characterEncoding(),
    7070        new vI_storageExtras_msgFormat(),
     
    7272            "sMimeEnc", "storageExtras_sMime_messageEncryption", "menu_securityEncryptRequire1",
    7373                function() { return ((typeof(setSecuritySettings)=='function')?setSecuritySettings(1):null) },
    74                 function() { return (identity.getIntAttribute('encryptionpolicy') == 2) }),
     74                function(identity) { return (identity.getIntAttribute('encryptionpolicy') == 2) }),
    7575        new vI_storageExtras_checkbox(
    7676            "sMimeSig", "storageExtras_sMime_messageSignature", "menu_securitySign1",
    7777                function() { return ((typeof(setSecuritySettings)=='function')?setSecuritySettings(1):null) },
    78                 function() { return (identity.getBoolAttribute('sign_mail')) }),
     78                function(identity) { return (identity.getBoolAttribute('sign_mail')) }),
    7979        new vI_storageExtras_checkbox(
    8080            "PGPEnc", "storageExtras_openPGP_messageEncryption", "enigmail_encrypted_send",
    8181                function() { return ((typeof(enigSetMenuSettings)=='function')?enigSetMenuSettings(''):null) },
    82                 function() { return (identity.getIntAttribute('defaultEncryptionPolicy') > 0) }),
     82                function(identity) { return (identity.getIntAttribute('defaultEncryptionPolicy') > 0) }),
    8383        new vI_storageExtras_checkbox(
    8484            "PGPSig", "storageExtras_openPGP_messageSignature", "enigmail_signed_send",
    8585                function() { return ((typeof(enigSetMenuSettings)=='function')?enigSetMenuSettings(''):null) },
    86                 function() { return ((identity.getIntAttribute('defaultEncryptionPolicy') > 0)?identity.getBoolAttribute('pgpSignEncrypted'):identity.getBoolAttribute('pgpSignPlain')) }),
     86                function(identity) { return ((identity.getIntAttribute('defaultEncryptionPolicy') > 0)?identity.getBoolAttribute('pgpSignEncrypted'):identity.getBoolAttribute('pgpSignPlain')) }),
    8787        new vI_storageExtras_checkbox(
    8888            "PGPMIME", "storageExtras_openPGP_PGPMIME", "enigmail_sendPGPMime",
    8989                function() { return ((typeof(enigSetMenuSettings)=='function')?enigSetMenuSettings(''):null) },
    90                 function() { return (identity.getBoolAttribute('pgpMimeMode')) })
     90                function(identity) { return (identity.getBoolAttribute('pgpMimeMode')) })
    9191        ]
    9292    if (document.getElementById("menu_securityNoEncryption1"))  // TB 2.x
     
    461461    // function to read the value from a given identity
    462462    readIdentityValue : function(identity) {
    463         this.value = (this.valueFromIdentityFunction)?"true":"false";
     463        this.value = (this.valueFromIdentityFunction(identity))?"true":"false";
    464464    },
    465465    // function to set or read the value from/to the MessageCompose Dialog
     
    467467        var element = document.getElementById(this.composeDialogElementID);
    468468        if (!this.value || !element) return;
    469         if (typeof(this.updateFunction)=="function") this.updateFunction;
     469        if (typeof(this.updateFunction)=="function") this.updateFunction();
    470470
    471471        if ((element.getAttribute("checked") == "true") != (this.value == "true")) {
     
    477477        var element = document.getElementById(this.composeDialogElementID)
    478478        if (!element) return;
    479         if (typeof(this.updateFunction)=="function") this.updateFunction;
     479        if (typeof(this.updateFunction)=="function") this.updateFunction();
    480480        this.value = ((element.getAttribute("checked") == "true")?"true":"false")
    481481    },
Note: See TracChangeset for help on using the changeset viewer.