changing timezone reloads calendar

master
Michał 'rysiek' Woźniak 2014-02-11 01:13:25 +01:00
parent 0b3415bb58
commit b232d96522
1 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,10 @@
$(document).ready(function(){
$('#timezone').change( function(){
var post = $( '#timezone' ).serialize();
$.post( OC.filePath('calendar', 'ajax/settings', 'settimezone.php'), post, function(data){return;});
$.post( OC.filePath('calendar', 'ajax/settings', 'settimezone.php'), post, function(data){
$('#fullcalendar').fullCalendar('refetchEvents');
return;
});
return false;
});
$('#timezone').chosen();