Closed
Bug 92522
Opened 24 years ago
Closed 24 years ago
select offline dialog: cancel button in Select Items for Offline usage gui does not cancel any changes you make
Categories
(SeaMonkey :: MailNews: Backend, defect, P2)
SeaMonkey
MailNews: Backend
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.0
People
(Reporter: grylchan, Assigned: shliang)
References
Details
Attachments
(1 file, 2 obsolete files)
1.49 KB,
patch
|
racham
:
review+
sspitzer
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
Using branch builds
20010725 NT 4.0, linux 2.2, mac 9.0.4
1)Bring up the Select Items for Offline usage window
from either Download and Sync gui or the 'select button' in
the preference section for Offline & Disk Space
2)Check a folder for download
3)Hit cancel
4)Bring the Select Items for Offline usage window back up
Result: The folder you checked has a checkmark in the box
Expected: The folder to not be checked since you canceled
Mohan assuming this would be your bug, if I am wrong please
correct.
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla0.9.4
![]() |
||
Comment 4•24 years ago
|
||
sorry, I should have caught this earlier.
this approach won't work once #85088 lands.
(the fix for that bug is in #73865, which is about to land.)
I'll take this bug and work on the fix.
Keywords: nsenterprise
![]() |
||
Comment 5•24 years ago
|
||
accepting. now that 85088 has landed, I can fix this.
Status: NEW → ASSIGNED
Summary: offline: cancel button in Select Items for Offline usage gui does not cancel any changes you make → select offline dialog: cancel button in Select Items for Offline usage gui does not cancel any changes you make
Whiteboard: Request R & SR
![]() |
||
Updated•24 years ago
|
Keywords: nsenterprise → nsenterprise+
![]() |
||
Comment 6•24 years ago
|
||
this work will happen during .9.5. Leaving the enterprise nomination alone.
Target Milestone: mozilla0.9.4 → mozilla0.9.5
![]() |
||
Comment 7•24 years ago
|
||
any strong objections to temporarily (until I fix this) removing the "cancel"
button (since it doesn't do anything), and just having an OK button?
![]() |
||
Comment 8•24 years ago
|
||
note, the work around is to uncheck what you've checked, so this isn't a super-
stop-ship bug. (but it is lame, and I'll fix it one day)
I don't have a problem with it. defer to others on this one.
![]() |
||
Comment 10•24 years ago
|
||
Removing the Cancel button will force the user to press OK, regardless if she
agrees to download the selected folders. Which is bad.
Please don't remove it. Only alerts, where you say "This and this happened, and
you can do absolutely nothing about it!" should have only a OK button.
![]() |
Reporter | |
Comment 11•24 years ago
|
||
I'm guessing Seth's pt is the cancel button doesn't work anyways.
If you select a folder and make a mistake, hitting cancel
won't cancel it. The folder will still be selected. The user
must still check the folder again to uncheck it. So temporarily
don't confuse the user and eliminate the cancel button since
the user will be under impression hitting cancel will correct
any selecting/unselecting of folders (which isn't currently true).
![]() |
||
Comment 12•24 years ago
|
||
So make Cancel work (i.e., fix the bug)?
Removing Cancel will only create a new bug, which is no better than this.
![]() |
||
Comment 13•24 years ago
|
||
Remove Cancel and OK for now. Add only a "Close" button. Fill a separate but to
implement OK and Cancel and remove "Close".
![]() |
||
Comment 14•24 years ago
|
||
Fill a separate "bug" not "but" to be implemented in the future. :-)
![]() |
||
Comment 15•24 years ago
|
||
Why are you people suggesting all these workarounds? Just fix the root bug once
and for all instead of wallpapering over it!
![]() |
||
Comment 17•24 years ago
|
||
I hope to fix this the right way in 0.9.6
Target Milestone: mozilla0.9.5 → mozilla0.9.6
![]() |
||
Updated•24 years ago
|
![]() |
||
Comment 18•24 years ago
|
||
reassigning to ssu.
Assignee: sspitzer → ssu
Status: ASSIGNED → NEW
Target Milestone: mozilla0.9.9 → mozilla1.0
![]() |
Assignee | |
Comment 20•24 years ago
|
||
![]() |
Assignee | |
Comment 21•24 years ago
|
||
![]() |
||
Updated•24 years ago
|
Attachment #45320 -
Attachment is obsolete: true
![]() |
||
Updated•24 years ago
|
Attachment #70959 -
Attachment is obsolete: true
![]() |
||
Comment 22•24 years ago
|
||
Comment on attachment 70960 [details] [diff] [review]
patch
Patch looks fine.
However, I really think that we should be taking the approach where we save all
the preferences user made in selectOkButton routine and don't do anything on
cancel exactly reflecting user's actions. I leave the choice to you.
Add comments to the current patch before you check in as to why you needed to
do take snapshot of initial state.
r=bhuvan
Attachment #70960 -
Flags: review+
![]() |
||
Comment 23•24 years ago
|
||
Comment on attachment 70960 [details] [diff] [review]
patch
sr=sspitzer, nice work, clean solution.
Attachment #70960 -
Flags: review+ → superreview+
Attachment #70960 -
Flags: review+
![]() |
||
Comment 24•24 years ago
|
||
>However, I really think that we should be taking the approach where we save all
>the preferences user made in selectOkButton routine and don't do anything on
>cancel exactly reflecting user's actions. I leave the choice to you.
shuehan's approach is correct.
here's the problem: I switched this code to use outliner builder and the
folder datasource. for state (and changes to the state) to show up in the
outliner, they have to be refected in the folder datasource. so, I made it so
on user actions, we modify the folder flags, which notifies the folder
datasource, which will notify the outliner builder.
this was an easy way to re-use the existing code (folder ds, outliner template
xul.)
it works great for OK, but how to handle cancel?
shuehan's fix is a simple, clean way to do that, given the decision I made on
how to implement the dialog.
re-writing this dialog to do nothing on click, and then make changes on OK
would be a lot more work.
![]() |
||
Comment 25•24 years ago
|
||
My idea was not to do nothing on click. On click, you would collect the folder
and flag state info. On OK, you apply them. On Cancel, you ignore them.
![]() |
||
Comment 26•24 years ago
|
||
> My idea was not to do nothing on click. On click, you would collect the folder
> and flag state info. On OK, you apply them. On Cancel, you ignore them.
you'd want the user's actions to update the UI, right?
how would you do that, given that it's a outliner template on top of the folder
datasource?
![]() |
||
Comment 27•24 years ago
|
||
Never mind. Yes, given the way we have implemented the UI there, we got to take
snapshots and restore.
Comment 28•24 years ago
|
||
Comment on attachment 70960 [details] [diff] [review]
patch
a=asa (on behalf of drivers) for checkin to the 1.0 trunk
Attachment #70960 -
Flags: approval+
![]() |
Assignee | |
Comment 29•24 years ago
|
||
fixed
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
![]() |
Reporter | |
Comment 30•24 years ago
|
||
Using commercial trunk
2002032203 NT 4.0
2002032008 linux 2.2
2002032208 on Mac 9.2.2 & 10.1.3
Verified Cancel button in the Items for Offline Usage window
now does cancel any changes you made and returns you to your last
saved state.
Tried via Download/Sync now and through offline settings and no problems.
Works fine in online or offline mode and tested both themes.
Marking as verified.
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
•