MCPcopy
hub / github.com/apache/echarts / updatePage

Function updatePage

test/lib/caseFrame.js:341–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

339 }
340
341 function updatePage() {
342 var pageURL = getCurrentPageURL();
343 var pagePathInfo = getState('pagePathInfo');
344
345 $(SELECTOR_CASES_LIST_CONTAINER + ' li').each(function (index, el) {
346 el.style.background = pagePathInfo.index === index ? 'rgb(170, 224, 245)' : 'none';
347 });
348
349 var src = pagePathInfo.pagePath ? baseURL + '/' + pageURL : 'about:blank';
350 var contentIframe = $(SELECTOR_CONTENT_IFRAME);
351 contentIframe.attr('src', src);
352 }
353
354 // type: 'full' or 'short'
355 function updatePageHint(type) {

Callers 1

updateViewFunction · 0.85

Calls 3

getCurrentPageURLFunction · 0.85
getStateFunction · 0.85
eachMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…