Changeset 28198b


Ignore:
Timestamp:
Jul 16, 2008, 10:51:01 PM (12 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
983f92
Parents:
581917
Message:

pre 3.0 versions had problems with retrieving an attribute if set. So use getAttribute for pre-3.0 versions

File:
1 edited

Legend:

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

    r581917 r28198b  
    198198       
    199199        var label = null;
    200        
    201         if (vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.selectedItem.value != "vid") {
     200
     201        // use getAttribute to be sure it works with TB 2.x versions
     202        if (vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.selectedItem.value != "vid" &&
     203            vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.selectedItem.getAttribute("value") != "vid") {
    202204            vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.base_id_key = null;
    203205            vI_msgIdentityClone.copySelectedIdentity(
     
    221223                vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.selectedItem.extras.setValues();
    222224            label = vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.selectedItem.label
     225            vI_notificationBar.dump("## vI_msgIdentityClone: label: '" + label + "'\n");
     226            if (!label) {   // TB 2.x has problems without getAttribute
     227                label = vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.selectedItem.getAttribute("label")
     228                vI_notificationBar.dump("## vI_msgIdentityClone: new label: '" + label + "'\n");
     229            }
    223230        }
    224231        vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.setAttribute("label", label);
Note: See TracChangeset for help on using the changeset viewer.