when adding an event, set focus to its name input field

This commit is contained in:
rlx 2011-10-11 10:19:44 +00:00
parent db25eec98b
commit c7d268a7aa
3 changed files with 19 additions and 6 deletions

View file

@ -111,13 +111,19 @@ Calendar
.OxThemeClassic .OxCalendar .OxLine > .OxEvent { .OxThemeClassic .OxCalendar .OxLine > .OxEvent {
color: rgb(0, 0, 0); color: rgb(0, 0, 0);
} }
.OxThemeClassic .OxCalendar .OxLine > .OxEvent.OxSelected {
box-shadow: inset 0 0 1px rgb(0, 0, 0),
inset 0 0 1px rgb(0, 0, 0),
inset 0 0 1px rgb(0, 0, 0),
inset 0 0 1px rgb(0, 0, 0);
}
.OxThemeClassic .OxCalendar .OxOverlay div:nth-child(even) { .OxThemeClassic .OxCalendar .OxOverlay div:nth-child(even) {
border-top: 1px solid rgba(0, 0, 0, 0.5); background-color: rgba(0, 0, 0, 0.25);
border-bottom: 1px solid rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 2px rgb(0, 0, 0);
} }
.OxThemeClassic .OxCalendar .OxOverlay div:nth-child(odd) { .OxThemeClassic .OxCalendar .OxOverlay div:nth-child(odd) {
background-color: rgba(255, 255, 255, 0.5); background-color: rgba(255, 255, 255, 0.25);
} }
/* /*

View file

@ -110,13 +110,19 @@ Calendar
.OxThemeModern .OxCalendar .OxLine > .OxEvent { .OxThemeModern .OxCalendar .OxLine > .OxEvent {
color: rgb(255, 255, 255); color: rgb(255, 255, 255);
} }
.OxThemeModern .OxCalendar .OxLine > .OxEvent.OxSelected {
box-shadow: inset 0 0 1px rgb(255, 255, 255),
inset 0 0 1px rgb(255, 255, 255),
inset 0 0 1px rgb(255, 255, 255),
inset 0 0 1px rgb(255, 255, 255);
}
.OxThemeModern .OxCalendar .OxOverlay div:nth-child(even) { .OxThemeModern .OxCalendar .OxOverlay div:nth-child(even) {
border-top: 1px solid rgba(255, 255, 255, 0.5); background-color: rgba(255, 255, 255, 0.25);
border-bottom: 1px solid rgba(255, 255, 255, 0.5); box-shadow: inset 0 0 2px rgb(255, 255, 255);
} }
.OxThemeModern .OxCalendar .OxOverlay div:nth-child(odd) { .OxThemeModern .OxCalendar .OxOverlay div:nth-child(odd) {
background-color: rgba(0, 0, 0, 0.5); background-color: rgba(0, 0, 0, 0.25);
} }

View file

@ -482,6 +482,7 @@ Ox.ListCalendar = function(options, self) {
Ox.print('TIME TO SET LIST OPTIONS:', +new Date() - time0); Ox.print('TIME TO SET LIST OPTIONS:', +new Date() - time0);
self.$calendar.addEvent(event); self.$calendar.addEvent(event);
selectEvent(event); selectEvent(event);
self.$nameInput.focusInput();
} else { } else {
alert(result.status.code) alert(result.status.code)
} }