diff --git a/mail/components/addrbook/content/abCardOverlay.js b/mail/components/addrbook/content/abCardOverlay.js index def2691243..c1f6ad866b 100644 --- a/mail/components/addrbook/content/abCardOverlay.js +++ b/mail/components/addrbook/content/abCardOverlay.js @@ -1,4 +1,4 @@ -# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +# -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ # ***** BEGIN LICENSE BLOCK ***** # Version: MPL 1.1/GPL 2.0/LGPL 2.1 # @@ -478,8 +478,11 @@ function GetCardValues(cardproperty, doc) function HideNonVcardFields() { document.getElementById("homeTabButton").hidden = true; - for (var i = kNonVcardFields.length; i-- > 0; ) + 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 diff --git a/mailnews/addrbook/resources/content/abCardOverlay.js b/mailnews/addrbook/resources/content/abCardOverlay.js index 407d1f0857..b483fc813e 100644 --- a/mailnews/addrbook/resources/content/abCardOverlay.js +++ b/mailnews/addrbook/resources/content/abCardOverlay.js @@ -475,8 +475,11 @@ function GetCardValues(cardproperty, doc) function HideNonVcardFields() { document.getElementById("homeTabButton").hidden = true; - for (var i = kNonVcardFields.length; i-- > 0; ) + 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