/**
- * Copyright (c) 2011 Georg Ehrke <ownclouddev at georgswebsite dot de>
+ * Copyright (c) 2012 Georg Ehrke <ownclouddev at georgswebsite dot de>
* Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>
* This file is licensed under the Affero General Public License version 3 or
* later.
}
},
+ reseticonhighlight: function(){
+ $('#oneweekview_radio').css('color', '#000000');
+ $('#onemonthview_radio').css('color', '#000000');
+ $('#listview_radio').css('color', '#000000');
+ },
Calendar:{
overview:function(){
if($('#choosecalendar_dialog').dialog('isOpen') == true){
});
$('#oneweekview_radio').click(function(){
$('#calendar_holder').fullCalendar('changeView', 'agendaWeek');
+ Calendar.UI.reseticonhighlight();
+ $('#oneweekview_radio').css('color', '#6193CF');
});
$('#onemonthview_radio').click(function(){
$('#calendar_holder').fullCalendar('changeView', 'month');
+ Calendar.UI.reseticonhighlight();
+ $('#onemonthview_radio').css('color', '#6193CF');
});
$('#listview_radio').click(function(){
$('#calendar_holder').fullCalendar('changeView', 'list');
+ Calendar.UI.reseticonhighlight();
+ $('#listview_radio').css('color', '#6193CF');
});
$('#today_input').click(function(){
$('#calendar_holder').fullCalendar('today');
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>