Closed
Bug 353696
Opened 18 years ago
Closed 16 years ago
View/Number-of-weeks is not updated/synced with Option weeks-to-show
Categories
(Calendar :: Sunbird Only, defect)
Calendar
Sunbird Only
Tracking
(Not tracked)
VERIFIED
FIXED
1.0b1
People
(Reporter: damian.publicemail, Assigned: gekacheka)
Details
Attachments
(1 file, 1 obsolete file)
3.87 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060921 Calendar/0.3a2+
When I change Numbers of week in main view in option still see old value
Reproducible: Always
Steps to Reproduce:
1. create new profile
2. switch to multiweek view (by default 4 weeks is displayed)
3. from menu view -> Numbers of week select 2 weeks
4. To go tools -> options -> views -> multiweek view
Actual Results:
Default weeks to show is not updated - still 4 weeks
Expected Results:
options should be updated as well
by default in Numbers of week no value is selected (when you create new profile)
more: when you change Numbers of week in option in main view you still can see old value so this is as well problem with refreshing (both side)
Comment 1•18 years ago
|
||
This is by design, whether a good idea or not. The preference is the default (on startup), toggling the option in the view is a temporary change. WONTFIX?
Reporter | ||
Comment 2•18 years ago
|
||
like rotate? when you switch between views you always go to horizontal days and vertical hours.
I don't use rotate but it's strange. It's like starting up always with default toolbar even if you switched it before...
Comment 3•18 years ago
|
||
I suspect we want to fix this. I found this behavior surprising and annoying as well.
Comment 4•18 years ago
|
||
How about we kill the pref and just persist the menu-value?
Comment 5•18 years ago
|
||
Sounds like the right thing to me.
Reporter | ||
Comment 6•18 years ago
|
||
(In reply to comment #4)
> How about we kill the pref and just persist the menu-value?
but in option you can set more than just number of weeks - also "Prevous weeks to show"
you can delete this option as well (what is not good idea) or migrate both to menu (which is even worse) or have one in menu and second in options which is not user friendly
I would drop it from menu, because generaly you set it once and don't change any more (I think so...).
Before you kill any variant think about users - they should not be suprised that they lost famous option (from menu or options)
Eg me, I was confused because of bug 348765 because since then I can not see events with from date < 6:00h
Keywords: qawanted
Comment 7•18 years ago
|
||
Looking for some UI-review goodness on killing the pref. I think everyone's agreed that we don't need both the pref and the menu-item. The question is only which should go and which should stay.
Whiteboard: [cal-ui-review needed]
Comment 8•18 years ago
|
||
Christian, what is your opinion on this problem from an UI expert POV?
OS: Windows XP → All
Hardware: PC → All
Whiteboard: [cal-ui-review needed]
Version: Trunk → unspecified
Additional problems:
1. Option pane allows one week, view menu does not.
2. On startup, current number of weeks is not selected in view menu.
3. If changed by view menu, then changed by option, wrong number of weeks is selected in view menu.
Easy to fix in view menu, but requires UI text change (l10n).
View menu/number-of-weeks is currently only in Sunbird, not Lightning.
Status: NEW → ASSIGNED
Component: General → Sunbird Only
Summary: after changing Number of weeks in main View value in option is not updated → View/Number-of-weeks is not updated/synced with Option weeks-to-show
Whiteboard: l10n
Assignee | ||
Comment 10•17 years ago
|
||
(patch -l -p 1 -i file.patch)
Changes:
calendar-decorated-multiweek-view.xml:
changing weeksInView property now sets preference calendar.weeks.inview
calendar.dtd:
Add calendar.menu.numberofweeks.1 "1 Week" so it can appear in view menu.
views.dtd:
Change "Default weeks to show" to "Number of weeks to show" so
it matches view menu (it is not a 'default' anymore).
calendar-menubar.inc:
Add onpopupshowing code to initialize selected number of weeks.
Add menuitem for 1 week.
With this patch, the view menu number-of-weeks and the option pane number-of-weeks now stay in sync after either is updated.
(Since this patch changes UI text it is not suitable for checking in during string freeze, so not asking for review yet.)
Assignee: nobody → gekacheka
Comment 11•17 years ago
|
||
(In reply to comment #10)
> (Since this patch changes UI text it is not suitable for checking in during
> string freeze, so not asking for review yet.)
Go ahead and ask for ui-r/r for your patches, even if they have strings. We'll eventually review and then use the checkin-needed/[checkin needed after 0.9] combination.
Updated•16 years ago
|
QA Contact: general → sunbird
Updated•16 years ago
|
Attachment #335269 -
Flags: ui-review?(christian.jansen)
Attachment #335269 -
Flags: review?(Berend.Cornelius)
Comment 12•16 years ago
|
||
Comment on attachment 335269 [details] [diff] [review]
patch v1: set via view menu sets pref; add "1 week"; init view menu to pref
Requesting review for gekacheka's patch.
Comment 13•16 years ago
|
||
Comment on attachment 335269 [details] [diff] [review]
patch v1: set via view menu sets pref; add "1 week"; init view menu to pref
looks good for me. ui=christian
Attachment #335269 -
Flags: ui-review?(christian.jansen) → ui-review+
Comment 14•16 years ago
|
||
Martin, I applied the patch and found that the "numberofweek.." resources have been shifted from calendar.dtd. Maybe you want to unbitrot the patch. I did not have a closer look if this is a dramatic change - most probably not.
Comment 15•16 years ago
|
||
Comment on attachment 335269 [details] [diff] [review]
patch v1: set via view menu sets pref; add "1 week"; init view menu to pref
patch works as advertised and looks good.
Maybe it is an option to use the pref-"numberofWeeks" resources for the menulist, although they are used in a different context. I would be interested about Simon's opinion about this. On the fly you could also assign accesskeys for the menuitems ("1,2,3..").
As I said already please be aware that the numberofWeeks resources have been moved to Sunbird.dtd.
By the way is there any reason why we should not offer this menu-item in Lightning , too?. I think we should decide whether we like it or not, but in this case we should then either skip the feature completely or implement it for both applications.
Christian, do you have an opinion about it?
r=berend.
Attachment #335269 -
Flags: review?(Berend.Cornelius) → review+
Updated•16 years ago
|
Whiteboard: [l10n] [patch in hand] → [needs updated patch]
Target Milestone: --- → 1.0
Comment 16•16 years ago
|
||
checked in updated patch
http://hg.mozilla.org/comm-central/rev/081c4c69d34f
where I added the Accesskeys
Attachment #335269 -
Attachment is obsolete: true
Updated•16 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Whiteboard: [needs updated patch]
Updated•15 years ago
|
Target Milestone: 1.0 → 1.0b1
You need to log in
before you can comment on or make changes to this bug.
Description
•