incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 119357] Sometimes no download link when JavaScript enabled in Firefox 12
Date Wed, 16 May 2012 10:36:22 GMT

--- Comment #6 from DonJaime <> ---
(In reply to comment #3)
> I thought of all the output, not only the first lines. ;-)

That was all of the output. Same bug as on the download page. The Error Console

Error: language is not defined
Source File:
Line: 14

The good news is that I've identified the reason for the difference: I have no
preferred language defined in my "Content" options. Probably not a common
choice, but it can happen.

The solution proposed above is still valid. Or you could declare the language
variable with 'var' (good practice anyhow) and leave out the 'typeof' test, but
you'd still need to change the condition to cover language == undefined. Taking
the quotes off the "null" would do that:

if (language == "" || language == null || language == "en") language = "en-US";


if (!language || language == "en") language = "en-US";

would cover everything more elegantly.

You are receiving this mail because:
You are the assignee for the bug.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message