MCPcopy Create free account
hub / github.com/error311/FileRise / shouldUseServerFilePagingForRequest

Function shouldUseServerFilePagingForRequest

public/js/fileListView.js:1948–1957  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

1946}
1947
1948function shouldUseServerFilePagingForRequest(options = {}) {
1949 if (options && options.forceLegacy) {
1950 return false;
1951 }
1952 if (window.advancedSearchEnabled) {
1953 return false;
1954 }
1955 const term = String(window.currentSearchTerm || '').trim();
1956 return term === '';
1957}
1958
1959function parseCursorOffset(cursor) {
1960 const text = String(cursor == null ? '' : cursor).trim();

Callers 4

toggleAdvancedSearchFunction · 0.85
loadFileListFunction · 0.85
renderFileTableFunction · 0.85
renderGalleryViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected