This is just some static backup of the original site, don't expect every link to work!

Ignore:
Timestamp:
Nov 3, 2014, 12:35:40 PM (8 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
7204cb
Parents:
3c9c29
Message:

code formatting (no code changes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/identityDataExtras/messageFormat.js

    r3c9c29 r509348  
    3636function identityDataExtrasObject_messageFormat(currentWindow) {
    3737  this.currentWindow = currentWindow;
    38   this.field  = "msgFormat";                        // description of the option
    39   this.option = "storageExtras_messageFormat";    // option string to get preference settings
     38  this.field = "msgFormat"; // description of the option
     39  this.option = "storageExtras_messageFormat"; // option string to get preference settings
    4040}
    4141identityDataExtrasObject_messageFormat.prototype = {
    4242  __proto__: identityDataExtrasObject.prototype,
    43  
     43
    4444  // functions to get nicely formatted output
    45   get valueHtml() { return this.valueNice; },
     45  get valueHtml() {
     46    return this.valueNice;
     47  },
    4648  get valueNice() {
    47     return this.value?this.currentWindow.document.getElementById(this.value).label:"";
     49    return this.value ? this.currentWindow.document.getElementById(this.value).label : "";
    4850  },
    4951
    50   setValueToEnvironment_msgCompose: function() {
     52  setValueToEnvironment_msgCompose: function () {
    5153    if (this.value == null)
    5254      return
    5355    this.currentWindow.document.getElementById("outputFormatMenu").removeAttribute("hidden");
    54     this.currentWindow.document.getElementById(this.value).setAttribute("checked","true");
     56    this.currentWindow.document.getElementById(this.value).setAttribute("checked", "true");
    5557    this.currentWindow.OutputFormatMenuSelect(this.currentWindow.document.getElementById(this.value))
    5658  },
    57  
    58   setValueToEnvironment_dataEditor: function() {
     59
     60  setValueToEnvironment_dataEditor: function () {
    5961    if (this.value != null) {
    6062      this.currentWindow.document.getElementById("outputFormatMenu").selectedItem = this.currentWindow.document.getElementById(this.value);
     
    6264    }
    6365    this.currentWindow.document.getElementById("vI_" + this.option + "_store").doCommand();
    64  },
    65  
    66   getValueFromEnvironment_msgCompose: function() {
     66  },
     67
     68  getValueFromEnvironment_msgCompose: function () {
    6769    const nsIMsgCompSendFormat = Components.interfaces.nsIMsgCompSendFormat;
    6870    switch (this.currentWindow.gSendFormat) {
    69       case nsIMsgCompSendFormat.AskUser: this.value = "format_auto"; break;
    70       case nsIMsgCompSendFormat.PlainText: this.value = "format_plain"; break;
    71       case nsIMsgCompSendFormat.HTML: this.value = "format_html"; break;
    72       case nsIMsgCompSendFormat.Both: this.value = "format_both"; break;
     71    case nsIMsgCompSendFormat.AskUser:
     72      this.value = "format_auto";
     73      break;
     74    case nsIMsgCompSendFormat.PlainText:
     75      this.value = "format_plain";
     76      break;
     77    case nsIMsgCompSendFormat.HTML:
     78      this.value = "format_html";
     79      break;
     80    case nsIMsgCompSendFormat.Both:
     81      this.value = "format_both";
     82      break;
    7383    }
    7484  },
    75  
    76   getValueFromEnvironment_dataEditor: function() {
     85
     86  getValueFromEnvironment_dataEditor: function () {
    7787    if (this.currentWindow.document.getElementById("vI_" + this.option + "_store").getAttribute("checked") == "true")
    7888      this.value = this.currentWindow.document.getElementById("outputFormatMenu").selectedItem.id
Note: See TracChangeset for help on using the changeset viewer.