Elastic: Fix non-working completion status checkbox on tasks list
This commit is contained in:
parent
9b55d3ad1b
commit
80ed46693a
1 changed files with 8 additions and 5 deletions
|
@ -360,16 +360,19 @@ function rcube_tasklist_ui(settings)
|
||||||
}).find('input[type=text]').placeholder(rcmail.gettext('createnewtask','tasklist'));
|
}).find('input[type=text]').placeholder(rcmail.gettext('createnewtask','tasklist'));
|
||||||
|
|
||||||
// click-handler on task list items (delegate)
|
// click-handler on task list items (delegate)
|
||||||
$(rcmail.gui_objects.resultlist).on('click', function(e){
|
$(rcmail.gui_objects.resultlist).on('click', function(e) {
|
||||||
var item = $(e.target);
|
var item = $(e.target), className = e.target.className;
|
||||||
var className = e.target.className;
|
|
||||||
|
|
||||||
if (item.hasClass('childtoggle')) {
|
if (item.hasClass('childtoggle')) {
|
||||||
item = item.parent().find('.taskhead');
|
item = item.parent().find('.taskhead');
|
||||||
className = 'childtoggle';
|
className = 'childtoggle';
|
||||||
}
|
}
|
||||||
else if (!item.hasClass('taskhead'))
|
else {
|
||||||
item = item.closest('div.taskhead');
|
if (!item.hasClass('taskhead'))
|
||||||
|
item = item.closest('div.taskhead');
|
||||||
|
|
||||||
|
className = String(className).split(' ')[0];
|
||||||
|
}
|
||||||
|
|
||||||
// ignore
|
// ignore
|
||||||
if (!item.length)
|
if (!item.length)
|
||||||
|
|
Loading…
Add table
Reference in a new issue