* Calendar: Fix not being able to add calenadr alarm for user with limited access

-Fix javascript error while switching to custom alarm date
This commit is contained in:
Hadi Nategh 2014-09-23 13:49:22 +00:00
parent aa10bc53a5
commit 9b917407e0
2 changed files with 2 additions and 2 deletions

View File

@ -1531,7 +1531,7 @@ class calendar_uiforms extends calendar_ui
$readonlys['__ALL__'] = true; // making everything readonly, but widgets set explicitly to false
$readonlys['alarm'] = $readonlys['button[cancel]'] = $readonlys['action'] =
$readonlys['before_after'] = $readonlys['button[add_alarm]'] = $readonlys['new_alarm[owner]'] =
$readonlys['new_alarm[options]'] = false;
$readonlys['new_alarm[options]'] = $readonlys['new_alarm[date]'] = false;
$content['participants']['no_add'] = true;

View File

@ -1256,7 +1256,7 @@ app.classes.calendar = AppJS.extend(
{
alarm_date.set_class('');
}
var startDate = start.get_value();
var startDate = typeof start.get_value != 'undefined'?start.get_value():start.value;
if (startDate)
{
var date = new Date(startDate);