Fix bug where counters in tags cloud were not updated after task delete (#3482)
This commit is contained in:
parent
7c3b2d646f
commit
65c49e78c7
2 changed files with 4 additions and 0 deletions
|
@ -276,6 +276,7 @@ function rcube_tasklist_ui(settings)
|
||||||
rcmail.addEventListener('plugin.update_tasklist', update_list);
|
rcmail.addEventListener('plugin.update_tasklist', update_list);
|
||||||
rcmail.addEventListener('plugin.destroy_tasklist', destroy_list);
|
rcmail.addEventListener('plugin.destroy_tasklist', destroy_list);
|
||||||
rcmail.addEventListener('plugin.unlock_saving', unlock_saving);
|
rcmail.addEventListener('plugin.unlock_saving', unlock_saving);
|
||||||
|
rcmail.addEventListener('plugin.refresh_tagcloud', function() { update_tagcloud(); });
|
||||||
rcmail.addEventListener('requestrefresh', before_refresh);
|
rcmail.addEventListener('requestrefresh', before_refresh);
|
||||||
rcmail.addEventListener('plugin.reload_data', function(){
|
rcmail.addEventListener('plugin.reload_data', function(){
|
||||||
list_tasks(null, true);
|
list_tasks(null, true);
|
||||||
|
|
|
@ -562,6 +562,9 @@ class tasklist extends rcube_plugin
|
||||||
}
|
}
|
||||||
$this->rc->output->command('plugin.update_task', $refresh);
|
$this->rc->output->command('plugin.update_task', $refresh);
|
||||||
}
|
}
|
||||||
|
else if ($success && ($action == 'delete' || $action == 'undelete')) {
|
||||||
|
$this->rc->output->command('plugin.refresh_tagcloud');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue