зеркало из https://github.com/mozilla/gecko-dev.git
Fix several Javascript strict warnings. R=alecf
This commit is contained in:
Родитель
b44bc158d7
Коммит
c963e76578
|
@ -944,11 +944,11 @@ 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");
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче