Fix several Javascript strict warnings. R=alecf

This commit is contained in:
ducarroz%netscape.com 2000-09-14 04:55:12 +00:00
Родитель b44bc158d7
Коммит c963e76578
2 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -945,10 +945,10 @@ function GenericSendMessage( msgType )
// Before sending the message, check what to do with HTML message, eventually abort. // Before sending the message, check what to do with HTML message, eventually abort.
var convert = DetermineConvertibility(); var convert = DetermineConvertibility();
action = DetermineHTMLAction(convert); var action = DetermineHTMLAction(convert);
if (action == msgCompSendFormat.AskUser) if (action == msgCompSendFormat.AskUser)
{ {
recommAction = convert == msgCompConvertible.No var recommAction = convert == msgCompConvertible.No
? msgCompSendFormat.AskUser ? msgCompSendFormat.AskUser
: msgCompSendFormat.PlainText; : msgCompSendFormat.PlainText;
var result2 = {action:recommAction, var result2 = {action:recommAction,
@ -1492,7 +1492,7 @@ function DetermineHTMLAction(convertible)
{ {
//See if a preference has been set to tell us what to do. Note that we do not honor that //See if a preference has been set to tell us what to do. Note that we do not honor that
//preference for newsgroups. Only for e-mail addresses. //preference for newsgroups. Only for e-mail addresses.
action = prefs.GetIntPref("mail.default_html_action"); var action = prefs.GetIntPref("mail.default_html_action");
switch (action) switch (action)
{ {
case msgCompSendFormat.PlainText : case msgCompSendFormat.PlainText :

Просмотреть файл

@ -73,9 +73,10 @@ function Recipients2CompFields(msgCompFields)
var ng_Sep = ""; var ng_Sep = "";
var follow_Sep = ""; var follow_Sep = "";
var inputField;
while ((inputField = awGetInputElement(i))) while ((inputField = awGetInputElement(i)))
{ {
fieldValue = inputField.value; var fieldValue = inputField.value;
if (fieldValue == null) if (fieldValue == null)
fieldValue = inputField.getAttribute("value"); fieldValue = inputField.getAttribute("value");