* 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:50:11 +00:00
parent 19d2b7effb
commit aaeb66f44e
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['__ALL__'] = true; // making everything readonly, but widgets set explicitly to false
$readonlys['alarm'] = $readonlys['button[cancel]'] = $readonlys['action'] = $readonlys['alarm'] = $readonlys['button[cancel]'] = $readonlys['action'] =
$readonlys['before_after'] = $readonlys['button[add_alarm]'] = $readonlys['new_alarm[owner]'] = $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; $content['participants']['no_add'] = true;

View File

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