Fix setting tags filter when search scope is changed
This commit is contained in:
parent
ca02fcbb37
commit
ee0297290c
1 changed files with 5 additions and 0 deletions
|
@ -524,6 +524,11 @@ function apply_tags_filter()
|
||||||
// adds _tags argument to http search request
|
// adds _tags argument to http search request
|
||||||
function search_request(url)
|
function search_request(url)
|
||||||
{
|
{
|
||||||
|
// remove old tags filter
|
||||||
|
if (url._filter) {
|
||||||
|
url._filter = url._filter.replace(/^kolab_tags_[0-9]+:[^:]+:/, '');
|
||||||
|
}
|
||||||
|
|
||||||
if (tagsfilter.length) {
|
if (tagsfilter.length) {
|
||||||
url._filter = 'kolab_tags_' + (new Date).getTime() + ':' + tagsfilter.join(',') + ':' + (url._filter || 'ALL');
|
url._filter = 'kolab_tags_' + (new Date).getTime() + ':' + tagsfilter.join(',') + ':' + (url._filter || 'ALL');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue