transbox() is not a function

RESOLVED FIXED in 5.7

Status

addons.mozilla.org Graveyard
Public Pages
--
trivial
RESOLVED FIXED
8 years ago
2 years ago

People

(Reporter: wenzel, Assigned: jbalogh)

Tracking

unspecified

Details

(Whiteboard: [z])

(Reporter)

Description

8 years ago
On the zamboni front page:

Error: $(".trans").transbox is not a function
Source File: http://127.0.0.1:8000/en-US/firefox/media/js/zamboni/init.js
Line: 5
(Reporter)

Comment 1

8 years ago
Same thing here:

Error: $(".tab-wrapper").tabify is not a function
Source File: http://127.0.0.1:8000/en-US/firefox/media/js/zamboni/init.js
Line: 8

Smells like some JS file is not being loaded.
(Assignee)

Comment 2

8 years ago
The js files you are looking for are zamboni/translations/trans.js and zamboni/tabs.js.

I kind of like putting this kind of initialization inside the relevant file, so the tabify handler is set up inside tabs.js.  That way you can't miss dependencies.

Though if we start bundling up all our js better, the problem will go away.
(Assignee)

Comment 3

8 years ago
Fixed in http://github.com/davedash/amo-js/commit/383790ef0ceff7ba0dd17430f3fa8403acce5642 (r61640) by checking for the plugin before running code.  If someone has a cleaner solution, I'm all ears.
Assignee: nobody → jbalogh
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → 5.7
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.