Bug 462229 -- Cannot edit/delete address from List in Address Book -- fix up issues with the dialog, r=Standard8
authorSiddharth Agarwal <sid.bugzilla@gmail.com>
Wed, 06 May 2009 10:57:36 +0100
changeset 2529 3c86616e351fa345cd74b3aee6c372191ea8b1c6
parent 2528 51031c6c66f80f4823a418cbb435a8ca852378ca
child 2530 00c8a1796b2ae78779a5ac4fcce42612a42a6ef2
push idunknown
push userunknown
push dateunknown
reviewersStandard8
bugs462229
Bug 462229 -- Cannot edit/delete address from List in Address Book -- fix up issues with the dialog, r=Standard8
mail/components/addrbook/content/abEditListDialog.xul
mail/components/addrbook/content/abMailListDialog.xul
--- a/mail/components/addrbook/content/abEditListDialog.xul
+++ b/mail/components/addrbook/content/abEditListDialog.xul
@@ -81,27 +81,27 @@
       </hbox>
     </hbox>
 
     <spacer style="height:1em"/>
     <label control="addressingWidget" value="&AddressTitle.label;"/>
     <spacer style="height:0.1em"/>
 
     <listbox id="addressingWidget" style="height: 15em;" onclick="awClickEmptySpace(event.target, true)">
-      <listitem class="addressingWidgetItem">
+      <listitem class="addressingWidgetItem" allowevents="true">
         <listcell class="addressingWidgetCell">
           <textbox id="addressCol1#1" class="plain textbox-addressingWidget uri-element"
-                   type="autocomplete" allowevents="true" flex="1"
-                   searchSessions="addrbook" timeout="300" maxrows="4"
+                   type="autocomplete" flex="1"
+                   autocompletesearch="addrbook" timeout="300" maxrows="4"
                    completedefaultindex="true" forcecomplete="true"
                    minresultsforpopup="3"
                    ontextentered="awRecipientTextCommand(eventParam, this)"
                    oninput="setupLdapAutocompleteSession();"
                    onkeypress="handleKeyPress(this, event);"
                    onkeydown="awRecipientKeyDown(event, this);"
                    onclick="awNotAnEmptyArea(event);">
-            <image onclick="awNotAnEmptyArea(event)" class="person-icon"/>
+            <image onclick="this.parentNode.select();" class="person-icon"/>
           </textbox>
         </listcell>
       </listitem>
     </listbox>
   </vbox>
 </dialog>
--- a/mail/components/addrbook/content/abMailListDialog.xul
+++ b/mail/components/addrbook/content/abMailListDialog.xul
@@ -91,27 +91,27 @@
       </hbox>
     </hbox>
 
     <spacer style="height:1em"/>
     <label control="addressingWidget" value="&AddressTitle.label;"/>
     <spacer style="height:0.1em"/>
 
     <listbox id="addressingWidget" style="height: 15em;" onclick="awClickEmptySpace(event.target, true)">
-      <listitem class="addressingWidgetItem">
+      <listitem class="addressingWidgetItem" allowevents="true">
         <listcell class="addressingWidgetCell">
           <textbox id="addressCol1#1" class="plain textbox-addressingWidget uri-element"
-                   type="autocomplete" allowevents="true" flex="1"
+                   type="autocomplete" flex="1"
                    autocompletesearch="addrbook" timeout="300" maxrows="4" 
                    completedefaultindex="true" forcecomplete="true"
                    minresultsforpopup="3"
                    ontextentered="awRecipientTextCommand(eventParam, this)"
                    oninput="setupLdapAutocompleteSession();"
                    onkeypress="handleKeyPress(this, event);"
                    onkeydown="awRecipientKeyDown(event, this);"
                    onclick="awNotAnEmptyArea(event);">
-            <image onclick="awNotAnEmptyArea(event)" class="person-icon"/>
+            <image onclick="this.parentNode.select();" class="person-icon"/>
           </textbox>
         </listcell>            
       </listitem>
     </listbox>
   </vbox>
 </dialog>