Closed Bug 335014 Opened 18 years ago Closed 18 years ago

Make install links html and hide with javascript

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Bugzilla-alanjstrBugs, Assigned: clouserw)

References

()

Details

Attachments

(1 file, 1 obsolete file)

Please change the addon.tpl so that we write out the divs, hide those that are not appropriate via script, and remove the noscript.  

Item of concern:  What if JS is off, and there are no compatible versions?  So the user would just see that there isn't a compatible version?
Severity: normal → minor
Status: NEW → ASSIGNED
Attached patch first attempt (obsolete) — Splinter Review
I think this covers all cases.
- Fully cross-platform extensions get one install link, and no script.
- Extensions with multiple XPIs get all the links written out.
  - The script loops through them, and hides foreign platforms.
  - If it has hidden all the links, it inserts a "not available" note.

I've also made the install box a little bit wider so that "Install Now for Windows (XXX KB)" fits without wrapping.
Attachment #219423 - Flags: first-review?(clouserw)
Attachment #219423 - Flags: first-review?(clouserw) → first-review+
I +'d your patch, but I ended up making a couple minor adjustments.  When there was only 1 OS, it would display the link no matter what OS you were on (eg. visit on linux and it would offer the link for windows).

Other than that, I think it's a lot cleaner code - thanks. :)
Assignee: rdmsoft → clouserw
Attachment #219423 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Target Milestone: 2.1 → ---
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: