Tasks: Fix folder edit/create issues

- fix setting unwanted and invalid folder color annotation
- fix saving "Show reminders" setting
- fix javascript error after editing a folder
This commit is contained in:
Aleksander Machniak 2019-05-21 11:45:37 +02:00
parent f848609ea1
commit 985d88fed2
2 changed files with 2 additions and 4 deletions

View file

@ -3050,8 +3050,6 @@ function rcube_tasklist_ui(settings)
data = form.serializeJSON();
if (list.id)
data.id = list.id;
if (form.find('#taskedit-tasklistname').is(':checked'))
data.showalarms = 1;
saving_lock = rcmail.set_busy(true, 'tasklist.savingdata');
rcmail.http_post('tasklist', {action: (list.id ? 'edit' : 'new'), l: data});
@ -3172,7 +3170,7 @@ function rcube_tasklist_ui(settings)
me.tasklists[prop.id] = prop;
$(li).find('input').first().val(prop.id);
$(li).find('.listname').first().html(Q(prop.name));
tasklists_widget.update(id, { id:prop.id, html:li.children().first() });
tasklists_widget.update(id, {id: prop.id, html: $(li).children().first()});
}
}

View file

@ -362,7 +362,7 @@ class tasklist_ui
'showalarms' => array(
'id' => 'taskedit-showalarms',
'label' => $this->plugin->gettext('showalarms'),
'value' => html::tag('input', array('id' => 'taskedit-showalarms', 'name' => 'color', 'type' => 'checkbox')),
'value' => html::tag('input', array('id' => 'taskedit-showalarms', 'name' => 'showalarms', 'type' => 'checkbox', 'value' => 1)),
),
);