reload page after add event successfully

This commit is contained in:
Georg Ehrke 2011-08-31 20:41:18 +02:00
parent 5678d78d54
commit 361861295f
2 changed files with 4 additions and 1 deletions

View File

@ -152,7 +152,7 @@ if($errnum != 0){
$data .= "RRULE:" . $repeat . "\n";
}
$data .= "END:VEVENT\nEND:VCALENDAR";
echo $data;
$result = OC_Calendar_Calendar::addCalendarObject($cal, $data);
echo json_encode(array("success"=>"true"));
}
?>

View File

@ -194,6 +194,9 @@
}else{
window.location.reload();
}
if(data.success == true){
location.reload();
}
},"json");
}
</script>