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

Changeset ec3005


Ignore:
Timestamp:
Mar 14, 2010, 9:23:57 AM (13 years ago)
Author:
rene <rene@…>
Branches:
multiEdit, ng_0.6, ng_0.8, ng_0.9
Children:
b9a85dc
Parents:
ffaef1
Message:

check address inputfield on send message

Location:
chrome/content/v_identity
Files:
2 edited

Legend:

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

    rffaef1 rec3005  
    3030var vI_storage = {
    3131    multipleRecipients : null,
     32    focusedElement : null,
    3233   
    3334    lastCheckedEmail : {},  // array of last checked emails per row,
     
    6667        vI_notificationBar.dump("\n## vI_storage: awOnBlur '" + element.id +"'\n");
    6768        vI_storage.updateVIdentityFromStorage(element);
     69        vI_storage.focusedElement = null;
     70    },
     71
     72    awOnFocus : function (element) {
     73        if (!element || ! element.id.match(/^addressCol2*/)) return;
     74        vI_storage.focusedElement = element;
    6875    },
    6976
     
    8996                    input.setAttribute("onblur", (oldBlur?oldBlur+"; ":"") +
    9097                        "window.setTimeout(vI_storage.awOnBlur, 250, this.parentNode.parentNode.parentNode);")
     98                    var oldFocus = input.getAttribute("onfocus")
     99                    input.setAttribute("onfocus", (oldFocus?oldFocus+"; ":"") +
     100                        "window.setTimeout(vI_storage.awOnFocus, 250, this.parentNode.parentNode.parentNode);")
    91101                }
    92102                var popup = awGetPopupElement(row);
  • chrome/content/v_identity/v_identity.js

    rffaef1 rec3005  
    134134            vI_main.replacement_functions.GenericSendMessageInProgress = true;
    135135           
     136            // if addressCol2 is focused while sending check storage for the entered address before continuing
     137            vI_storage.awOnBlur(vI_storage.focusedElement);
     138
    136139            var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
    137140                .getService(Components.interfaces.nsIPromptService);
Note: See TracChangeset for help on using the changeset viewer.