Closed Bug 1274688 Opened 8 years ago Closed 8 years ago

Javascript error on editing a user profile for $.widget

Categories

(developer.mozilla.org Graveyard :: Profiles, defect)

All
Other
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jwhitlock, Unassigned)

Details

(Keywords: in-triage, Whiteboard: [specification][type:bug])

What did you do?
================
1. Log in
2. Edit my profile
3. Open JavaScript console to view errors

What happened?
==============
The error appears:

TypeError: $.widget is not a function

$.widget is also undefined in the REPL, so it does not appear to be a dependency ordering issues

What should have happened?
==========================
$.widget should be defined, probably as the jQuery UI widget factory (http://jqueryui.com/widget/)

Is there anything else we should know?
======================================
This appears to be attempting to load the "ui.tagit" widget, probably to allow selecting expertise from interests.
Severity: normal → minor
Keywords: in-triage
Commit pushed to master at https://github.com/mozilla/kuma

https://github.com/mozilla/kuma/commit/634b171f76c44b831197c3dca32c979b64325c12
Fix bugs 1271503, 1274688, 1036150, 712337: Fix profile format and errors.

Fix bug 1271503: Reformat profile.
Moved user links into main profile section. Removed styling for user-photo because it assumed user-links were after it. Reformatted user links to be inline. Some RTL fixes

Fix bug 1274688: JS error on profile.
Included jQuery UI to stop JS errors

Fix bug 1036150: Can't add expertise.
Changed from .attr(checked) to .prop(checked).

Fix bug 712337: Improve expertise.
Show expertise field only if there is expertise for the user to check.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.