Changeset d3b07c


Ignore:
Timestamp:
May 19, 2008, 1:37:10 AM (14 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
e3ff82
Parents:
f11240
Message:

broken Test for Mailinglist, force onBlur for first field

File:
1 edited

Legend:

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

    rf11240 rd3b07c  
    229229            // see https://bugzilla.mozilla.org/show_bug.cgi?id=355367
    230230            // same seems to happen with the ondragdrop event
    231             for (var row = 1; row <= top.MAX_RECIPIENTS; row ++) {
     231            if (top.MAX_RECIPIENTS == 0) top.MAX_RECIPIENTS = 1;
     232            for (var row = 1; row <= top.MAX_RECIPIENTS ; row ++) {
    232233                var input = awGetInputElement(row);
    233234                if (input) {
     
    485486    isMailingList: function(recipient) {
    486487        vI_notificationBar.dump("## vI_storage: isMailingList '" + recipient + "' \n")
    487         queryString = "?(or(DisplayName,c," + encodeURIComponent(vI_storage.getMailListName(recipient)) + "))"
     488        var queryString = "?(or(DisplayName,c," + encodeURIComponent(vI_storage.getMailListName(recipient)) + "))"
    488489        var returnVar = vI_storage._walkTroughCards(queryString, vI_storage._isMailingListCard,
    489             { mailListName : mailListName, isMailList : false } )
     490            { mailListName : recipient, isMailList : false } )
    490491        vI_notificationBar.dump("## vI_storage: isMailList  " + returnVar.isMailList + ".\n")
    491492        return returnVar.isMailList;
     
    503504    getMailListName : function(recipient) {
    504505        if (recipient.match(/<[^>]*>/) || recipient.match(/$/)) {
    505             mailListName = RegExp.leftContext + RegExp.rightContext
     506            var mailListName = RegExp.leftContext + RegExp.rightContext
    506507            mailListName = mailListName.replace(/^\s+|\s+$/g,"")
    507508        }
Note: See TracChangeset for help on using the changeset viewer.