diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-01-15 00:06:26 +0100 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-01-15 00:06:26 +0100 |
commit | b1433119cc0abf4bffed1a901bace0ca9e92e328 (patch) | |
tree | 3726c7e3d1c1acb9fd174b77c5a6fa079c2ba9df /apps/calendar/templates/calendar.php | |
parent | 0ac9e56da929fdac9507b386139c7e24f131cdf1 (diff) | |
download | nextcloud-server-b1433119cc0abf4bffed1a901bace0ca9e92e328.tar.gz nextcloud-server-b1433119cc0abf4bffed1a901bace0ca9e92e328.zip |
highlight the current view
Diffstat (limited to 'apps/calendar/templates/calendar.php')
-rwxr-xr-x | apps/calendar/templates/calendar.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/calendar/templates/calendar.php b/apps/calendar/templates/calendar.php index 50d3d70347a..6b2cd68c6fb 100755 --- a/apps/calendar/templates/calendar.php +++ b/apps/calendar/templates/calendar.php @@ -27,6 +27,20 @@ echo '$(\'#calendar_holder\').fullCalendar(\'gotoDate\', ' . $year . ', ' . --$month . ', ' . $day . ');'; echo '$(\'#dialog_holder\').load(OC.filePath(\'calendar\', \'ajax\', \'editeventform.php\') + \'?id=\' + ' . $_['showevent'] . ' , Calendar.UI.startEventDialog);'; } + + switch(OC_Preferences::getValue(OC_USER::getUser(), 'calendar', 'currentview', 'month')){ + case 'agendaWeek': + echo '$(\'#oneweekview_radio\').css(\'color\', \'#6193CF\');'; + break; + case 'month': + echo '$(\'#onemonthview_radio\').css(\'color\', \'#6193CF\');'; + break; + case 'list': + echo '$(\'#listview_radio\').css(\'color\', \'#6193CF\');'; + break; + default: + break; + } ?> }); </script> |