Closed Bug 877868 Opened 11 years ago Closed 11 years ago

When I type the name of a person in the needinfo "other" list, the check box should be automatically checked

Categories

(bugzilla.mozilla.org :: Extensions, defect)

Production
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: ehsan.akhgari, Unassigned)

Details

This already happens if you switch "other" to "reporter" or something.
This works for me. When I type a partial name and then select form the list of matches, it checks the checkbox. If I do not select from the list, and just tab out of the text field or click anywhere on the page, it then checks the checkbox for me.

What is the exact text you are typing in that causes the checkbox to not check by default?

Here is the code snipped that does this:

            function needinfo_other_changed() {
              YAHOO.util.Dom.get('needinfo').checked = YAHOO.util.Dom.get('needinfo_from').value != '';
            }

And the other field has onchange="needinfo_other_changed();"

dkl
Flags: needinfo?(ehsan)
Don't tell anyone but it didn't occur to me to tab out of the field, and I _knew_ about the change event semantics.  Carry on.  :-)
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(ehsan)
Resolution: --- → INVALID
Component: Extensions: Needinfo → Extensions
You need to log in before you can comment on or make changes to this bug.