enable listview button
This commit is contained in:
parent
e48377d85b
commit
c40383b610
|
@ -27,7 +27,7 @@ if(OC_Preferences::getValue(OC_USER::getUser(), 'calendar', 'currentview', 'mont
|
||||||
OC_Preferences::setValue(OC_USER::getUser(), "calendar", "currentview", "month");
|
OC_Preferences::setValue(OC_USER::getUser(), "calendar", "currentview", "month");
|
||||||
}
|
}
|
||||||
if(OC_Preferences::getValue(OC_USER::getUser(), 'calendar', 'currentview', 'month') == "listview"){
|
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');
|
OC_Util::addScript('3rdparty/fullcalendar', 'fullcalendar');
|
||||||
|
|
|
@ -531,10 +531,10 @@ $(document).ready(function(){
|
||||||
});
|
});
|
||||||
$('#onemonthview_radio').click(function(){
|
$('#onemonthview_radio').click(function(){
|
||||||
$('#calendar_holder').fullCalendar('changeView', 'month');
|
$('#calendar_holder').fullCalendar('changeView', 'month');
|
||||||
});/*
|
});
|
||||||
$('#listview_radio').click(function(){
|
$('#listview_radio').click(function(){
|
||||||
$('#calendar_holder').fullCalendar('changeView', 'list');
|
$('#calendar_holder').fullCalendar('changeView', 'list');
|
||||||
});*/
|
});
|
||||||
$('#today_input').click(function(){
|
$('#today_input').click(function(){
|
||||||
$('#calendar_holder').fullCalendar('today');
|
$('#calendar_holder').fullCalendar('today');
|
||||||
});
|
});
|
||||||
|
|
|
@ -13,7 +13,7 @@ var allDayText = '<?php echo $l->t('All day') ?>';
|
||||||
<div id="view">
|
<div id="view">
|
||||||
<input type="button" value="<?php echo $l->t('Week');?>" id="oneweekview_radio"/>
|
<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('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>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<form>
|
<form>
|
||||||
|
|
Loading…
Reference in New Issue