Changeset 509348 for modules/identityDataExtras/fccSwitch.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/identityDataExtras/fccSwitch.js
r3c9c29 r509348 36 36 function identityDataExtrasObject_fccSwitch(currentWindow) { 37 37 this.currentWindow = currentWindow; 38 this.field = "fcc";// description of the option39 this.option = "storageExtras_fcc"; 38 this.field = "fcc"; // description of the option 39 this.option = "storageExtras_fcc"; // option string to get preference settings 40 40 this.elementID_msgCompose = "virtualIdentityExtension_fccSwitch"; 41 41 } 42 42 identityDataExtrasObject_fccSwitch.prototype = { 43 43 __proto__: identityDataExtrasCheckboxObject.prototype, 44 45 readIdentityValue : function(identity) {46 if (this.active) this.value = (identity.doFcc) ?"true":"false";44 45 readIdentityValue: function (identity) { 46 if (this.active) this.value = (identity.doFcc) ? "true" : "false"; 47 47 }, 48 48 49 setValueToEnvironment_msgCompose: function () {49 setValueToEnvironment_msgCompose: function () { 50 50 var element = this.currentWindow.document.getElementById(this.elementID_msgCompose); 51 51 if (!this.active || (this.value == null) || !element) 52 52 return; 53 53 54 54 this.updateFunction_msgCompose(); 55 55 if ((element.getAttribute("checked") == "true") != (this.value == "true")) { 56 Log.debug("change " + this.field + " to " + this.value + " directly");56 Log.debug("change " + this.field + " to " + this.value + " directly"); 57 57 element.setAttribute("checked", (element.getAttribute("checked") != "true")); 58 58 }
Note: See TracChangeset
for help on using the changeset viewer.