Closed Bug 295209 Opened 20 years ago Closed 7 years ago

Show details checkbox should use pref to persist across sessions

Categories

(Other Applications Graveyard :: Reporter, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: Peter6, Assigned: raccettura)

References

Details

Attachments

(1 file, 1 obsolete file)

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050522 Firefox/1.0+ ID:2005052223 open reporter and finish report check the "show details" checkbox open reporter again and fisish report notice checkbox is unchecked expected: either use a button to show detail or allways show deails (prefered and meening you can remove the option alltogether) or make FF remember, which would require a pref
we should add a pref
Blocks: 295770
Summary: show details checkbox is useless → show details checkbox should use pref to persist across sessions
Wrong bug to block... sorry for bugspam.
Blocks: 315750
No longer blocks: 295770
Attached patch Patch v1 (obsolete) — Splinter Review
This should do it.
Attachment #208820 - Flags: review?(mconnor)
Comment on attachment 208820 [details] [diff] [review] Patch v1 >Index: reporter/resources/content/reporter/reportWizard.js >+function setBoolPref(prefname, aValue) { nit: aPrefName ? (oh, just noticed this is to match getBoolPref...) >+function setShowDetail(){ >+ var hideDetail = getBoolPref("hideDetail", false); >+ var hideDetailChecked = hideDetail ? false : true; nit: hideDetailChecked = !hideDetail ? >+ document.getElementById('showDetail').checked = hideDetailChecked; >+ document.getElementById('finishExtendedFrame').collapsed = hideDetail; >+} or maybe: function setShowDetail() { var hideDetail = getBoolPref("hideDetail", false); document.getElementById('showDetail').checked = !hideDetail; document.getElementById('finishExtendedFrame').collapsed = hideDetail; } ? > function showDetail() { > var hideDetail = document.getElementById('showDetail').checked ? false : true; This seems a lot clearer as: !document.getElementById('showDetail').checked , but maybe that's just me :) >+ setBoolPref("hideDetail", hideDetail); > document.getElementById('finishExtendedFrame').collapsed = hideDetail; > } Maybe you could merge setShowDetail and showDetail into one? Perhaps: function showDetail(aOnPageShow) { var hideDetail = getBoolPref("hideDetail", false); if (!aOnPageShow) document.getElementById('showDetail').checked = !hideDetail; document.getElementById('finishExtendedFrame').collapsed = hideDetail; } and then pass true from onPageShow and false (or nothing) from the checkbox itself?
Attached patch Patch v2Splinter Review
Addressing comments. FYI: var hideDetail = document.getElementById('showDetail').checked ? false : true; is all you. You wrote that patch, I r= and checked in. Now all of a sudden it's not up to your standards? ;-)
Attachment #208820 - Attachment is obsolete: true
Attachment #208862 - Flags: review?(mconnor)
Attachment #208820 - Flags: review?(mconnor)
(In reply to comment #5) > FYI: > var hideDetail = document.getElementById('showDetail').checked ? false : true; > > is all you. You wrote that patch, I r= and checked in. All me? Gavin Sharp? I don't see my name anywhere in the blame for that ;).
(In reply to comment #6) > All me? Gavin Sharp? I don't see my name anywhere in the blame for that ;). > No, sorry it's Mike's... he wrote the cleanup patch, and I checked it in.
Status: NEW → ASSIGNED
Summary: show details checkbox should use pref to persist across sessions → Show details checkbox should use pref to persist across sessions
Comment on attachment 208862 [details] [diff] [review] Patch v2 Robert, clearing this request since it's ancient, not sure if it's still relevant/useful, if it is please re-request review. #mconnorisabadperson
Attachment #208862 - Flags: review?(mconnor)
Reporter isn't a maintained project. Closing!
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: