diff --git a/apps/calendar/ajax/newevent.php b/apps/calendar/ajax/newevent.php
index 93eaef66d171870bbbd46d5c455c43e08ba57159..8ea39c2346cb17519917850d75d73e67aa25552b 100755
--- a/apps/calendar/ajax/newevent.php
+++ b/apps/calendar/ajax/newevent.php
@@ -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"));
 }
 ?>
\ No newline at end of file
diff --git a/apps/calendar/templates/part.newevent.php b/apps/calendar/templates/part.newevent.php
index 837e032c7344c073af8419131906fdea295bf04e..21dddaa7db87012ef490bad4e1b216c7ac86c01d 100755
--- a/apps/calendar/templates/part.newevent.php
+++ b/apps/calendar/templates/part.newevent.php
@@ -194,6 +194,9 @@
 				}else{
 					window.location.reload();
 				}
+				if(data.success == true){
+					location.reload();
+				}
 			},"json");
 	}
 </script>
\ No newline at end of file