Closed
Bug 87177
Opened 25 years ago
Closed 25 years ago
Textfield on "Offline and Disk Space" is editable regardless of checkbox status.
Categories
(SeaMonkey :: Preferences, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.4
People
(Reporter: andre.bugs2, Assigned: dianesun)
Details
(Keywords: polish, Whiteboard: Request R & SR)
Attachments
(11 files)
|
1.95 KB,
patch
|
Details | Diff | Splinter Review | |
|
44.29 KB,
image/gif
|
Details | |
|
6.95 KB,
patch
|
Details | Diff | Splinter Review | |
|
45.82 KB,
image/gif
|
Details | |
|
7.71 KB,
patch
|
Details | Diff | Splinter Review | |
|
8.06 KB,
patch
|
Details | Diff | Splinter Review | |
|
7.36 KB,
patch
|
Details | Diff | Splinter Review | |
|
24.27 KB,
image/png
|
Details | |
|
36.74 KB,
image/gif
|
Details | |
|
1.87 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.08 KB,
patch
|
Details | Diff | Splinter Review |
[Build 2001-06-20-17 on Linux]
The textfield on the "Offline and Disk Space" panel in Preferences should only
be editable if the checkbox beneeth it is checked. Currently it is always enabled.
I guess the fix for this one is similar to that of bug 86899.
Comment 2•25 years ago
|
||
handing over to diane [guessing by the offline gui bugs she fixed]. punt as needed.
Assignee: blake → dianesun
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla0.9.3
There is an issue: check/uncheck the checkbox, the text field availability is
not affected on current display. Question: how does Account Manager's panel,
preference gets updated real-time whenever a preference checkbox/groupradio is
checked.
Diane,
I have some minor comments.
* What's the patch behind the screenshot (id:39724) you posted ?
* In your latest patch, things look good. I have one comment though. I noticed
that variable name 'bc' being used in couple of places. I can expand that to
broadcaster as I know the code. So, please use longer and more context sensitive
names (broadcasterDownloadLimitSize) so that it will be easy to understand the code.
* Do post another screenshot with your latest fix.
* Run some tests.
&& then r=bhuvan.
| Assignee | ||
Comment 10•25 years ago
|
||
| Assignee | ||
Comment 11•25 years ago
|
||
Request SR for attachment 43607 [details] [diff] [review], Seth?
Whiteboard: request R & SR for attachment 39967 → request SR for attachment 43607
Comment 12•25 years ago
|
||
I was talking about the var 'bc' in the following statements. May be you changed
and probably forgot to post the patch with var name changed to a more meaningful
one.
+ var bc = document.getElementById("bc_notDownload");
+ var bc = document.getElementById("bc_downloadMsg");
+ var bc = document.getElementById("bc_keepMsg");
+ var bc = document.getElementById("bc_removeBody");
Also, when you are there, can you add comments on the top of each of these
functions.
thanks
bhuvan
| Assignee | ||
Comment 13•25 years ago
|
||
| Assignee | ||
Comment 14•25 years ago
|
||
Request SR for attachment 43627 [details] [diff] [review], not 43607 now.
Whiteboard: request SR for attachment 43607 → request SR for attachment 43627
Comment 15•25 years ago
|
||
sorry for the delay. feel free to send me mail directly when you are ready for
a super review.
you've got some duplicate code that you can remove.
onCheckKeepMsg() is fine, but these are duplicated code:
onCheckNotDownload()
onCheckDownloadMsg()
onCheckRemoveBody()
example, instead of doing:
+ onCheckNotDownload();
do
+ onCheckItem("bc_notDownload","offline.notDownload");
onCheckItem would be something like this:
function onCheckItem(broadcasterElementId, checkElementId)
{
var broadcaster = document.getElementById(broadcasterElementId);
var checked = document.getElementById(checkElementId).checked;
if(checked) {
broadcaster.removeAttribute("disabled");
}
else {
broadcaster.setAttribute("disabled", "true");
}
}
| Assignee | ||
Comment 16•25 years ago
|
||
Like to reduce the duplicate code, BUT IT WILL NOT WORK.
Remember in the XUL file, there are
oncommand=onCheckNotDownload()
oncommand=onCheckDownloadMsg()
oncommand=onCheckRemoveBody()
oncommand=onCheckKeepMsg()
to make each click work real-time.
Please SR again.
Comment 17•25 years ago
|
||
sure it will work.
in your xul,
you change
oncommand="onCheckNotDownload();"
to
oncommand="onCheckItem('bc_notDownload','offline.notDownload');"
| Assignee | ||
Comment 18•25 years ago
|
||
Yes, I know that. But it makes xul file complicated.
If you prefer that way, I can make the change.
Comment 19•25 years ago
|
||
duplicated code is bloat and is harder to maintain.
I don't think it makes it more complicated.
yes, please go with the suggested approach.
| Assignee | ||
Comment 20•25 years ago
|
||
Comment 21•25 years ago
|
||
sr=sspitzer on the last attachment.
Whiteboard: request SR for attachment 43627 → request SR
| Reporter | ||
Updated•25 years ago
|
Whiteboard: request SR
| Assignee | ||
Comment 23•25 years ago
|
||
checked in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 24•25 years ago
|
||
hrm, this is still an issue: in the Disk Space section, the checkbox for
"Compact folders when it will save over [field] KB" is still editable when it is
not selected.
reopening --however, let me know if that's covered by another bug!
tested using:
linux, 2001.08.15.14-comm
winnt, 2001.08.15.06-comm
mac OS 9.1 [emul on X], 2001.08.15.08-comm
will attach screenshot...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 25•25 years ago
|
||
Comment 26•25 years ago
|
||
Though this bug is opened keeping AccountManager panel in the view, we should
also fix the global Offline & Disk space panel problem as pointed out by Sairuh.
It's anyway the same procedure.
| Assignee | ||
Comment 27•25 years ago
|
||
| Assignee | ||
Comment 28•25 years ago
|
||
| Assignee | ||
Comment 29•25 years ago
|
||
Request R & SR for additional fix for preference. attachment 46251 [details] [diff] [review].
Buhvan, Seth?
Status: REOPENED → ASSIGNED
Whiteboard: Request R & SR
Comment 30•25 years ago
|
||
looks reasonable.
sr=sspitzer
Comment 31•25 years ago
|
||
r=bhuvan.
Please make sure that you change one of variable names from 'el' to something
more context sensitive (& test once) before you check in. thanks.
| Assignee | ||
Comment 32•25 years ago
|
||
check in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
Comment 33•25 years ago
|
||
reopening, the patch is completely wrong. the textfield is disabled when i
check the checkbox & the textfield is enabled when the checkbox isn't checked.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 34•25 years ago
|
||
Comment 35•25 years ago
|
||
r=walk84
Comment 36•25 years ago
|
||
fixed.
Status: REOPENED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
Comment 37•25 years ago
|
||
vrfy fixed.
linux, 2001.08.22.08-comm
winnt, 2001.08.22.09-comm
mac 9.1, 2001.08.22.08-comm
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•