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

Ignore:
Timestamp:
Aug 16, 2011, 10:12:23 PM (11 years ago)
Author:
rene <rene@…>
Branches:
ng_0.8, ng_0.9
Children:
190674
Parents:
92fd25
Message:

clean namespace from pollution

File:
1 edited

Legend:

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

    r92fd25 rc3feaa  
    2323 * ***** END LICENSE BLOCK ***** */
    2424
    25 var vI_smartReply_dialog = {
     25virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
     26var smartReply_dialog = {
    2627    Obj_radioGroup : null,
    2728    all_addresses : null,
    2829
    2930    init : function() {
    30         vI_smartReply_dialog.Obj_radioGroup = document.getElementById("replySelector.radiogroup");
    31         vI_smartReply_dialog.all_addresses = window.arguments[0];
    32         for (var index = 0; index < vI_smartReply_dialog.all_addresses.number; index++) {
    33             var menuentry = vI_smartReply_dialog.all_addresses.identityDataCollection[index].combinedName;
     31        smartReply_dialog.Obj_radioGroup = document.getElementById("replySelector.radiogroup");
     32        smartReply_dialog.all_addresses = window.arguments[0];
     33        for (var index = 0; index < smartReply_dialog.all_addresses.number; index++) {
     34            var menuentry = smartReply_dialog.all_addresses.identityDataCollection[index].combinedName;
    3435
    3536            var id = null; var smtp = null;
    3637
    37             if (vI_smartReply_dialog.all_addresses.identityDataCollection[index].id)
    38                 id = vI_smartReply_dialog.all_addresses.identityDataCollection[index].id.value;
    39             if (vI_smartReply_dialog.all_addresses.identityDataCollection[index].smtp)
    40                 smtp = vI_smartReply_dialog.all_addresses.identityDataCollection[index].smtp.value;
     38            if (smartReply_dialog.all_addresses.identityDataCollection[index].id)
     39                id = smartReply_dialog.all_addresses.identityDataCollection[index].id.value;
     40            if (smartReply_dialog.all_addresses.identityDataCollection[index].smtp)
     41                smtp = smartReply_dialog.all_addresses.identityDataCollection[index].smtp.value;
    4142
    4243            menuentry += (id?" (" + id + "," +
    4344                    (smtp?smtp:document.getElementById("bundle_messenger").getString("defaultServerTag")) +
    4445                    ")":"")
    45             vI_smartReply_dialog.add_row(menuentry);
     46            smartReply_dialog.add_row(menuentry);
    4647        }
    4748    },
     
    5051        var radio = document.createElement("radio");
    5152        radio.setAttribute("label",combinedName);
    52         vI_smartReply_dialog.Obj_radioGroup.appendChild(radio);
     53        smartReply_dialog.Obj_radioGroup.appendChild(radio);
    5354    },
    5455
    5556    accept : function() {
    5657        /* window.argument[1] stores callback function */
    57         window.arguments[1](vI_smartReply_dialog.all_addresses, vI_smartReply_dialog.Obj_radioGroup.selectedIndex);
     58        window.arguments[1](smartReply_dialog.all_addresses, smartReply_dialog.Obj_radioGroup.selectedIndex);
    5859        document.documentElement.acceptDialog();
    5960    }
    6061}
    61 window.addEventListener("load", vI_smartReply_dialog.init, false);
     62window.addEventListener("load", smartReply_dialog.init, false);
     63}});
Note: See TracChangeset for help on using the changeset viewer.