Fix disabling alarms in calendar UI
This commit is contained in:
parent
79bb15e3e0
commit
368059499a
2 changed files with 5 additions and 0 deletions
|
@ -515,6 +515,9 @@ class calendar extends rcube_plugin
|
|||
$cal = get_input_value('c', RCUBE_INPUT_GPC);
|
||||
$success = $reload = false;
|
||||
|
||||
if (isset($cal['showalarms']))
|
||||
$cal['showalarms'] = intval($cal['showalarms']);
|
||||
|
||||
switch ($action) {
|
||||
case "form-new":
|
||||
case "form-edit":
|
||||
|
|
|
@ -1834,6 +1834,8 @@ function rcube_calendar_ui(settings)
|
|||
data.color = data.color.replace(/^#/, '');
|
||||
if (calendar.id)
|
||||
data.id = calendar.id;
|
||||
if (alarms)
|
||||
data.showalarms = alarms.checked ? 1 : 0;
|
||||
|
||||
me.saving_lock = rcmail.set_busy(true, 'calendar.savingdata');
|
||||
rcmail.http_post('calendar', { action:(calendar.id ? 'edit' : 'new'), c:data });
|
||||
|
|
Loading…
Add table
Reference in a new issue