From 2ac87076bfb203879da5a260242bec4870fe3a02 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 26 Mar 2009 00:48:27 +0100 Subject: [PATCH] Fix view names. --- kronolith/attendees.php | 10 +++++----- kronolith/lib/FreeBusy/View/Month.php | 4 ++-- kronolith/lib/FreeBusy/View/Week.php | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/kronolith/attendees.php b/kronolith/attendees.php index 36f59a7b5..9b8e36be9 100644 --- a/kronolith/attendees.php +++ b/kronolith/attendees.php @@ -179,7 +179,7 @@ case 'clear': } // Get the current Free/Busy view; default to the 'day' view if none specified. -$view = Util::getFormData('view', 'day'); +$view = Util::getFormData('view', 'Day'); // Pre-format our delete image/link. $delimg = Horde::img('delete.png', _("Remove Attendee"), null, @@ -189,10 +189,10 @@ $ident = &Identity::singleton(); $identities = $ident->getAll('id'); $vars = Variables::getDefaultVariables(); $tabs = new Horde_UI_Tabs(null, $vars); -$tabs->addTab(_("Day"), 'javascript:switchView(\'day\')', 'day'); -$tabs->addTab(_("Work Week"), 'javascript:switchView(\'workweek\')', 'workweek'); -$tabs->addTab(_("Week"), 'javascript:switchView(\'week\')', 'week'); -$tabs->addTab(_("Month"), 'javascript:switchView(\'month\')', 'month'); +$tabs->addTab(_("Day"), 'javascript:switchView(\'Day\')', 'Day'); +$tabs->addTab(_("Work Week"), 'javascript:switchView(\'Workweek\')', 'Workweek'); +$tabs->addTab(_("Week"), 'javascript:switchView(\'Week\')', 'Week'); +$tabs->addTab(_("Month"), 'javascript:switchView(\'Month\')', 'Month'); $attendee_view = &Kronolith_FreeBusy_View::singleton($view); diff --git a/kronolith/lib/FreeBusy/View/Month.php b/kronolith/lib/FreeBusy/View/Month.php index 24075dfe7..41b4b48a1 100644 --- a/kronolith/lib/FreeBusy/View/Month.php +++ b/kronolith/lib/FreeBusy/View/Month.php @@ -48,7 +48,7 @@ class Kronolith_FreeBusy_View_Month extends Kronolith_FreeBusy_View { $t = new Horde_Date($this->_start); while ($span_left > 0) { $span_left -= $span; - $week_label = Horde::link('#', '', '', '', 'return switchDateView(\'week\',' . $t->dateString() . ');') . ("Week") . ' ' . $week . ''; + $week_label = Horde::link('#', '', '', '', 'return switchDateView(\'Week\',' . $t->dateString() . ');') . ("Week") . ' ' . $week . ''; $hours_html .= sprintf('%s', $span, $dayWidth, $week_label); $week++; @@ -61,7 +61,7 @@ class Kronolith_FreeBusy_View_Month extends Kronolith_FreeBusy_View { $t = new Horde_Date(array('month' => $this->_start->month, 'mday' => $this->_start->mday + $i, 'year' => $this->_start->year)); - $day_label = Horde::link('#', '', '', '', 'return switchDateView(\'day\',' . $t->dateString() . ');') . sprintf("%s.", $i + 1) . ''; + $day_label = Horde::link('#', '', '', '', 'return switchDateView(\'Day\',' . $t->dateString() . ');') . sprintf("%s.", $i + 1) . ''; $hours_html .= sprintf('%s', $dayWidth, $day_label); } diff --git a/kronolith/lib/FreeBusy/View/Week.php b/kronolith/lib/FreeBusy/View/Week.php index a75e289d3..b0ea0c65d 100644 --- a/kronolith/lib/FreeBusy/View/Week.php +++ b/kronolith/lib/FreeBusy/View/Week.php @@ -50,7 +50,7 @@ class Kronolith_FreeBusy_View_Week extends Kronolith_FreeBusy_View { $t = new Horde_Date(array('month' => $this->_start->month, 'mday' => $this->_start->mday + $i, 'year' => $this->_start->year)); - $day_label = Horde::link('#', '', '', '', 'return switchDateView(\'day\',' . $t->dateString() . ');') . $t->strftime($date_format) . ''; + $day_label = Horde::link('#', '', '', '', 'return switchDateView(\'Day\',' . $t->dateString() . ');') . $t->strftime($date_format) . ''; $hours_html .= sprintf('%s', $span, $dayWidth, $day_label); } -- 2.11.0