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)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: Peter6, Assigned: raccettura)
References
Details
Attachments
(1 file, 1 obsolete file)
|
3.21 KB,
patch
|
Details | Diff | Splinter Review |
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
| Assignee | ||
Comment 1•19 years ago
|
||
we should add a pref
Blocks: 295770
Summary: show details checkbox is useless → show details checkbox should use pref to persist across sessions
| Assignee | ||
Comment 2•19 years ago
|
||
Wrong bug to block... sorry for bugspam.
Comment 4•19 years ago
|
||
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?
| Assignee | ||
Comment 5•19 years ago
|
||
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)
Comment 6•19 years ago
|
||
(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 ;).
| Assignee | ||
Comment 7•19 years ago
|
||
(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.
| Assignee | ||
Updated•19 years ago
|
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 8•16 years ago
|
||
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)
Comment 9•7 years ago
|
||
Reporter isn't a maintained project. Closing!
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Updated•7 years ago
|
Product: Other Applications → Other Applications Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•