diff --git a/apps/calendar/ajax/changeview.php b/apps/calendar/ajax/changeview.php
index a3fc8afbb7..d3a00bf172 100755
--- a/apps/calendar/ajax/changeview.php
+++ b/apps/calendar/ajax/changeview.php
@@ -19,13 +19,8 @@
*************************************************/
require_once ("../../../lib/base.php");
if(!OC_USER::isLoggedIn()) {
- die("0");
+ die("");
}
$currentview = $_GET["v"];
OC_Preferences::setValue(OC_USER::getUser(), "calendar", "currentview", $currentview);
-if(OC_Preferences::getValue(OC_USER::getUser(), "calendar", "currentview") == $currentview){
- die("1");
-}else{
- die("0");
-}
?>
\ No newline at end of file
diff --git a/apps/calendar/ajax/getcal.php b/apps/calendar/ajax/getcal.php
index 9d28caeb3d..06ebebc83a 100755
--- a/apps/calendar/ajax/getcal.php
+++ b/apps/calendar/ajax/getcal.php
@@ -19,9 +19,6 @@
*************************************************/
require_once ("../../lib/base.php");
if(!OC_USER::isLoggedIn()) {
- header("Location: " . OC_HELPER::linkTo("", "index.php"));
- exit ;
+ die("");
}
-require_once ("../lib/calendar.php");
-$calendar = new OC_Calendar_Calendar;
?>
\ No newline at end of file
diff --git a/apps/calendar/appinfo/app.php b/apps/calendar/appinfo/app.php
index 8cf92baf30..e989266d40 100644
--- a/apps/calendar/appinfo/app.php
+++ b/apps/calendar/appinfo/app.php
@@ -1,5 +1,5 @@
10,
'href' => OC_Helper::linkTo( 'calendar', 'index.php' ),
'icon' => OC_Helper::imagePath( 'calendar', 'icon.png' ),
- 'name' => 'Calendar' ));
+ 'name' => $l->t('Calendar')));
diff --git a/apps/calendar/css/style.css b/apps/calendar/css/style.css
index 0d59586a39..a4bae17888 100755
--- a/apps/calendar/css/style.css
+++ b/apps/calendar/css/style.css
@@ -45,11 +45,11 @@
.controls {min-width: 800px;}
.center {text-align: center;}
.dateinfo {height: 15px; width: 100%; overflow: hidden; margin: 0; padding: 0; font-size: 12px;background: #F7F7F7;}
-.events {height: 65px; width: 100%; margin: 0; padding: 0;}
+.events {height: 80px; width: 100%; margin: 0; padding: 0;}
.calendar_row {height: 20px; text-align: center;background: #ffffff;}
.calendar_time {height: 20px; width: 50px; text-align:right;background: #ffffff;}
.fourweeksview_item {text-align: center; background: #ffffff;width: 14%;}
-.onemonthview_item {text-align: center; height: 80px; margin: 0; padding: 0;height: 100px; vertical-align: top; background: #ffffff; width: 14%; height: 16%;}
-.weekend{text-align: center;margin: 0; padding: 0; vertical-align: top;background: #F3F3F3;}
+.onemonthview_item {text-align: center; height: 80px; margin: 0; padding: 0; vertical-align: top; background: #ffffff; width: 14%; height: 16%;}
+.weekend{text-align: center;margin: 0; padding: 0;vertical-align: top;background: #F3F3F3; height: 80px;width: 100%; }
.weekend_thead, .weekend_row{height: 20px;text-align: center;text-align: center;background: #F3F3F3;}
.thisday{background: #FFFABC;text-align: center;}
\ No newline at end of file
diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js
index 535035ba5b..067d5f5308 100755
--- a/apps/calendar/js/calendar.js
+++ b/apps/calendar/js/calendar.js
@@ -493,7 +493,7 @@ function oc_cal_load_cal(loadview) {
document.getElementById('onedayview_today').title = generate_title;
}
if(loadview == "oneweek") {
- document.getElementById("datecontrol_date").value = "CW: " + oc_cal_calw();
+ document.getElementById("datecontrol_date").value = cw_label + ": " + oc_cal_calw();
var dates = oc_cal_generate_dates("oneweek");
var weekdays = new Array("monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday");
var weekday = 1;
@@ -569,7 +569,7 @@ function oc_cal_load_cal(loadview) {
document.getElementById("fourweeksview_calw2").innerHTML = calw2;
document.getElementById("fourweeksview_calw3").innerHTML = calw3;
document.getElementById("fourweeksview_calw4").innerHTML = calw4;
- document.getElementById("datecontrol_date").value = "CWs: " + oc_cal_calw() + " - " + calwplusfour;
+ document.getElementById("datecontrol_date").value = cws_label + ": " + oc_cal_calw() + " - " + calwplusfour;
}
if(loadview == "onemonth") {
document.getElementById("datecontrol_date").value = oc_cal_monthlong[oc_cal_month] + oc_cal_space + oc_cal_year;
diff --git a/apps/calendar/js/calendar_dialog.js b/apps/calendar/js/calendar_dialog.js
deleted file mode 100755
index 5995a37899..0000000000
--- a/apps/calendar/js/calendar_dialog.js
+++ /dev/null
@@ -1,38 +0,0 @@
-/*************************************************
- * ownCloud - Calendar Plugin *
- * *
- * (c) Copyright 2011 Georg Ehrke *
- * author: Georg Ehrke *
- * email: ownclouddev at georgswebsite dot de *
- * homepage: ownclouddev.georgswebsite.de *
- * manual: ownclouddev.georgswebsite.de/manual *
- * License: GNU AFFERO GENERAL PUBLIC LICENSE *
- * *
- *