MCPcopy Create free account
hub / github.com/MiroMindAI/MiroThinker / selectFileByIndex

Function selectFileByIndex

apps/visualize-trace/static/js/script.js:395–401  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

393}
394
395function selectFileByIndex(index) {
396 if (index >= 0 && index < currentFileList.length) {
397 elements.fileSelect.selectedIndex = index + 1; // +1 因为第一个选项是"选择Trace文件..."
398 currentFileIndex = index;
399 updateNavigationButtons();
400 }
401}
402
403function updateNavigationButtons() {
404 const hasPrev = currentFileIndex > 0;

Callers 2

gotoPrevFileFunction · 0.85
gotoNextFileFunction · 0.85

Calls 1

updateNavigationButtonsFunction · 0.85

Tested by

no test coverage detected