Closed Bug 179626 Opened 23 years ago Closed 15 years ago

Hide, rather than disable, requestee fields when the flags aren't in the "?" state

Categories

(Bugzilla :: Attachments & Requests, defect)

2.17.1
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 4.0

People

(Reporter: bzbarsky, Assigned: reed)

References

Details

(Keywords: ue)

Attachments

(1 file, 3 obsolete files)

STEPS TO REPRODUCE: 1) Load "Edit an attachment" page 2) Request a review from someone (set the review flag to '?') 3) Submit form 4) Load the same page again 5) Set the review flag to '+' ACTUAL RESULTS: The "requestee" textfield becomes disabled but makes it look like the review will be marked as being done by the requestee EXPECTED RESULTS: The "requestee" textfield should be completely blanked out or hidden to make it clear that it is irrelevant.
Summary: confusing presense of requestee's name when +/- selected as attachment flag → confusing presence of requestee's name when +/- selected as attachment flag
QA Contact: mattyt-bugzilla → default-qa
Assignee: myk → attach-and-request
IMO, I would tend to mark it as WONTFIX. I doubt this really generates any confusion.
Severity: normal → trivial
Well, it sure confused me, and I'm not that easily confused.
Pyrzak's students' research pointed out that the grayed-out requestee box on flags is confusing to new users--why is it there? Why can't they click in it? The box should just be hidden when the flag isn't set to "?". This includes show_bug.cgi, enter_bug.cgi, and attachment.cgi.
Blocks: bz-hci2008
Severity: trivial → minor
Keywords: ue
Attached patch patch - v1 (obsolete) — Splinter Review
Assignee: attach-and-request → reed
Status: NEW → ASSIGNED
Target Milestone: --- → Bugzilla 4.0
Attached patch patch - v1.1 (obsolete) — Splinter Review
Ok, this works. It uses parentNode to hide the entire <span> that contains the requestee field.
Attachment #454443 - Attachment is obsolete: true
Attachment #454445 - Flags: review?(mkanat)
Comment on attachment 454445 [details] [diff] [review] patch - v1.1 >+ requesteeField.parentNode.style.display = "block"; Instead of manually setting the "display" attribute, you should add and remove the bz_default_hidden class, using YUI.
Attachment #454445 - Flags: review?(mkanat) → review-
Attached patch patch - v2 (obsolete) — Splinter Review
Use addClass() and removeClass().
Attachment #454445 - Attachment is obsolete: true
Attachment #454750 - Flags: review?(mkanat)
Comment on attachment 454750 [details] [diff] [review] patch - v2 This looks great! >=== modified file 'js/flag.js' >+YAHOO.util.Event.addListener(window, "load", hideRequesteeFields); On checkin, could you make that an onDOMReady? I'm getting a flash of unstyled content and I think perhaps onDOMReady will do it better.
Attachment #454750 - Flags: review?(mkanat) → review+
Flags: approval+
Keywords: relnote
Attached patch what I landedSplinter Review
Attachment #454750 - Attachment is obsolete: true
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/ modified js/flag.js Committed revision 7256.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Blocks: 584032
Added to the release notes in bug 604256.
Keywords: relnote
Summary: confusing presence of requestee's name when +/- selected as attachment flag → Hide, rather than disable, requestee fields when the flags aren't in the "?" state
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: