|
|
|
@ -188,15 +188,18 @@ define('forum/search', ['search', 'autocomplete', 'storage'], function (searchMo
|
|
|
|
|
confirmKeys: [13, 44],
|
|
|
|
|
trimValue: true,
|
|
|
|
|
});
|
|
|
|
|
autocomplete.user(userEl.siblings('.bootstrap-tagsinput').find('input'));
|
|
|
|
|
if (app.user.privileges['search:users']) {
|
|
|
|
|
autocomplete.user(userEl.siblings('.bootstrap-tagsinput').find('input'));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var tagEl = $('#has-tags');
|
|
|
|
|
tagEl.tagsinput({
|
|
|
|
|
confirmKeys: [13, 44],
|
|
|
|
|
trimValue: true,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
autocomplete.tag(tagEl.siblings('.bootstrap-tagsinput').find('input'));
|
|
|
|
|
if (app.user.privileges['search:tags']) {
|
|
|
|
|
autocomplete.tag(tagEl.siblings('.bootstrap-tagsinput').find('input'));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Search;
|
|
|
|
|