Bug 520432 - Personal vcard editing shouldn't have a "photo" tab, r=Standard8, sr=neil, a=Standard8
authorPhil Ringnalda <philringnalda@gmail.com>
Tue, 06 Oct 2009 20:53:55 -0700
changeset 4064 11eb8c57e70068832920d08eea53a5a66a7b2cce
parent 4063 82a189244d8ca569794d0aa6bfda7bd7d7f3cd05
child 4065 1ea1a945d4a0fb05c8701b6677ba3a61dd52f45c
push idunknown
push userunknown
push dateunknown
reviewersStandard8, neil, Standard8
bugs520432
Bug 520432 - Personal vcard editing shouldn't have a "photo" tab, r=Standard8, sr=neil, a=Standard8
mail/components/addrbook/content/abCardOverlay.js
suite/mailnews/addrbook/abCardOverlay.js
--- a/mail/components/addrbook/content/abCardOverlay.js
+++ b/mail/components/addrbook/content/abCardOverlay.js
@@ -33,17 +33,17 @@
 # and other provisions required by the GPL or the LGPL. If you do not delete
 # the provisions above, a recipient may use your version of this file under
 # the terms of any one of the MPL, the GPL or the LGPL.
 #
 # ***** END LICENSE BLOCK *****
 
 const kNonVcardFields =
         ["nickNameContainer", "secondaryEmailContainer", "screenNameContainer",
-         "customFields", "allowRemoteContent", "abPhotoTab"];
+         "customFields", "allowRemoteContent"];
 
 const kPhoneticFields =
         ["PhoneticLastName", "PhoneticLabel1", "PhoneticSpacer1",
          "PhoneticFirstName", "PhoneticLabel2", "PhoneticSpacer2"];
 
 // Item is |[dialogField, cardProperty]|.
 const kVcardFields =
         [ // Contact > Name
@@ -514,16 +514,17 @@ function GetCardValues(cardproperty, doc
 }
 
 // when the ab card dialog is being loaded to show a vCard,
 // hide the fields which aren't supported
 // by vCard so the user does not try to edit them.
 function HideNonVcardFields()
 {
   document.getElementById("homeTabButton").hidden = true;
+  document.getElementById("photoTabButton").hidden = true;
   var i;
   for (i = kNonVcardFields.length; i-- > 0; )
     document.getElementById(kNonVcardFields[i]).collapsed = true;
   for (i = kPhoneticFields.length; i-- > 0; )
     document.getElementById(kPhoneticFields[i]).collapsed = true;
 }
 
 // Move the data from the dialog to the cardproperty to be stored in the database
--- a/suite/mailnews/addrbook/abCardOverlay.js
+++ b/suite/mailnews/addrbook/abCardOverlay.js
@@ -511,16 +511,17 @@ function GetCardValues(cardproperty, doc
 }
 
 // when the ab card dialog is being loaded to show a vCard,
 // hide the fields which aren't supported
 // by vCard so the user does not try to edit them.
 function HideNonVcardFields()
 {
   document.getElementById("homeTabButton").hidden = true;
+  document.getElementById("photoTabButton").hidden = true;
   var i;
   for (i = kNonVcardFields.length; i-- > 0; )
     document.getElementById(kNonVcardFields[i]).collapsed = true;
   for (i = kPhoneticFields.length; i-- > 0; )
     document.getElementById(kPhoneticFields[i]).collapsed = true;
 }
 
 // Move the data from the dialog to the cardproperty to be stored in the database