mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Add list of posts to pools
This commit is contained in:
@ -9,10 +9,6 @@ function _poolListToMatches(pools, options) {
|
||||
return pool2.postCount - pool1.postCount;
|
||||
}).map(pool => {
|
||||
let cssName = misc.makeCssName(pool.category, 'pool');
|
||||
// TODO
|
||||
if (options.isPooledWith(pool.id)) {
|
||||
cssName += ' disabled';
|
||||
}
|
||||
const caption = (
|
||||
'<span class="' + cssName + '">'
|
||||
+ misc.escapeHtml(pool.names[0] + ' (' + pool.postCount + ')')
|
||||
@ -28,10 +24,6 @@ class PoolAutoCompleteControl extends AutoCompleteControl {
|
||||
constructor(input, options) {
|
||||
const minLengthForPartialSearch = 3;
|
||||
|
||||
options = Object.assign({
|
||||
isPooledWith: poolId => false,
|
||||
}, options);
|
||||
|
||||
options.getMatches = text => {
|
||||
const term = misc.escapeSearchTerm(text);
|
||||
const query = (
|
||||
|
Reference in New Issue
Block a user