reload page after add event successfully
This commit is contained in:
parent
5678d78d54
commit
361861295f
|
@ -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"));
|
||||
}
|
||||
?>
|
|
@ -194,6 +194,9 @@
|
|||
}else{
|
||||
window.location.reload();
|
||||
}
|
||||
if(data.success == true){
|
||||
location.reload();
|
||||
}
|
||||
},"json");
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue