Changeset ec0f59


Ignore:
Timestamp:
Oct 2, 2009, 1:19:16 PM (10 years ago)
Author:
rene <rene@…>
Branches:
lite_0.1, multiEdit, ng_0.6, ng_0.6_help, ng_0.8, ng_0.9
Children:
bdfae4
Parents:
75af75
Message:

TB 3 compatibility

File:
1 edited

Legend:

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

    r75af75 rec0f59  
    384384    // function to set or read the value from/to the MessageCompose Dialog
    385385    setValue : function() {
    386         if (this.value == "true") var element = document.getElementById("menu_securityEncryptRequire1")
    387         else var element = document.getElementById("menu_securityNoEncryption1")
    388         element.setAttribute("checked", "true");
    389         element.doCommand();
     386        var doEncryptElem = document.getElementById("menu_securityEncryptRequire1");
     387        var noEncryptElem = document.getElementById("menu_securityNoEncryption1");
     388        if (noEncryptElem && this.value != "true") {            // TB 2.x
     389            noEncryptElem.setAttribute("checked", "true");
     390            noEncryptElem.doCommand();
     391        }
     392        else {                              // TB 3.x
     393            doEncryptElem.setAttribute("checked", this.value);
     394            doEncryptElem.doCommand();
     395        }
    390396    },
    391397    readValue : function() {
Note: See TracChangeset for help on using the changeset viewer.