(pane)
| 1911 | } |
| 1912 | |
| 1913 | function syncGlobalsFromPaneState(pane) { |
| 1914 | const state = getPaneState(pane); |
| 1915 | window.currentFolder = state.currentFolder || "root"; |
| 1916 | window.currentSubfolders = Array.isArray(state.currentSubfolders) ? state.currentSubfolders : []; |
| 1917 | window.currentSubfoldersSourceId = String(state.currentSubfoldersSourceId || ''); |
| 1918 | window.currentSubfoldersFolder = String(state.currentSubfoldersFolder || ''); |
| 1919 | window.currentPage = state.currentPage || 1; |
| 1920 | window.currentSearchTerm = state.currentSearchTerm || ""; |
| 1921 | window.currentFolderCaps = state.currentFolderCaps || null; |
| 1922 | window.selectedFolderCaps = state.selectedFolderCaps || null; |
| 1923 | fileData = Array.isArray(state.fileData) ? state.fileData : []; |
| 1924 | window.currentFileListPaging = state.fileListPaging || null; |
| 1925 | } |
| 1926 | |
| 1927 | function getFileListCursorPageSize() { |
| 1928 | const raw = parseInt(window.itemsPerPage || localStorage.getItem('itemsPerPage') || '50', 10); |
no test coverage detected