Changeset f3a715


Ignore:
Timestamp:
Feb 20, 2013, 8:34:34 PM (9 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
147cbf
Parents:
4bd1e2
Message:

sometimes ss_signature is not defined, skip this

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/plugins/signatureSwitch.js

    r4bd1e2 rf3a715  
    4545   
    4646    // code to hide the text signature
    47     if (vIprefs.get("hide_signature") && signatureWindow.ss_signature.length == 0) {
     47    if (vIprefs.get("hide_signature") && signatureWindow.ss_signature && signatureWindow.ss_signature.length == 0) {
    4848      Log.debug("hide text/html signature");
    4949      signatureWindow.ss_main.signatureSwitch()
     
    8383    Log.debug("signatureSwitch restore signature");
    8484    // code to show the text signature
    85     if (signatureWindow.ss_signature.length > 0) {
     85    if (signatureWindow.ss_signature && signatureWindow.ss_signature.length > 0) {
    8686      Log.debug("show text/html signature");
    8787      signatureWindow.ss_main.signatureSwitch()
Note: See TracChangeset for help on using the changeset viewer.