Changeset 821d4b


Ignore:
Timestamp:
Feb 12, 2017, 12:47:46 PM (3 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
40bd28
Parents:
b85576
Message:

to store charset after editing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/identityDataExtras/characterEncoding.js

    rb85576 r821d4b  
    106106      CharsetMenu.build(this._currentWindow.document.getElementById("charsetPopup"), false, false)
    107107      if (this.value != null) {
    108         CharsetMenu.update(this._currentWindow.document.getElementById("maileditCharsetMenu"), this.value);
    109         this._currentWindow.document.getElementById("maileditCharsetMenu").setAttribute("label", CharsetMenu._getCharsetLabel(this.value));
     108        let menu = this._currentWindow.document.getElementById("maileditCharsetMenu");
     109        let menuitem = menu.getElementsByAttribute("charset", this.value).item(0);
     110        if (menuitem) {
     111            menu.selectedItem = menuitem;
     112            menuitem.setAttribute("checked", "true");
     113        }
     114        menu.setAttribute("label", CharsetMenu._getCharsetLabel(this.value));
    110115        this._currentWindow.document.getElementById("vI_" + this.option + "_store").setAttribute("checked", "true");
    111116      }
Note: See TracChangeset for help on using the changeset viewer.