enable listview button

This commit is contained in:
Georg Ehrke 2011-10-21 18:27:12 +02:00
parent e48377d85b
commit c40383b610
3 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ if(OC_Preferences::getValue(OC_USER::getUser(), 'calendar', 'currentview', 'mont
OC_Preferences::setValue(OC_USER::getUser(), "calendar", "currentview", "month");
}
if(OC_Preferences::getValue(OC_USER::getUser(), 'calendar', 'currentview', 'month') == "listview"){
OC_Preferences::setValue(OC_USER::getUser(), "calendar", "currentview", "month");
OC_Preferences::setValue(OC_USER::getUser(), "calendar", "currentview", "list");
}
OC_Util::addScript('3rdparty/fullcalendar', 'fullcalendar');

View File

@ -531,10 +531,10 @@ $(document).ready(function(){
});
$('#onemonthview_radio').click(function(){
$('#calendar_holder').fullCalendar('changeView', 'month');
});/*
});
$('#listview_radio').click(function(){
$('#calendar_holder').fullCalendar('changeView', 'list');
});*/
});
$('#today_input').click(function(){
$('#calendar_holder').fullCalendar('today');
});

View File

@ -13,7 +13,7 @@ var allDayText = '<?php echo $l->t('All day') ?>';
<div id="view">
<input type="button" value="<?php echo $l->t('Week');?>" id="oneweekview_radio"/>
<input type="button" value="<?php echo $l->t('Month');?>" id="onemonthview_radio"/>
<!--<input type="button" value="<?php echo $l->t('List');?>" id="listview_radio"/>-->
<input type="button" value="<?php echo $l->t('List');?>" id="listview_radio"/>
</div>
</form>
<form>