MCPcopy Create free account
hub / github.com/apache/storm / toggleComponents

Function toggleComponents

storm-webapp/src/main/webapp/js/script.js:548–562  ·  view source on GitHub ↗
(elId)

Source from the content-addressed store, hash-verified

546}
547
548function toggleComponents(elId) {
549 var show = $.cookies.get('showComponents') || false;
550 show = !show;
551
552 var exDate = new Date();
553 exDate.setDate(exDate.getDate() + 365);
554
555 $.cookies.set('showComponents', show, {'path':'/', 'expiresAt':exDate.toUTCString()});
556 $(elId + ' tbody tr').each(function (){
557 var row = $(elId).DataTable().row(this);
558 if (row.node()) {
559 showComponents(row, show);
560 }
561 });
562}
563
564function open_visualization(sys) {
565 window.open('/visualize.html?id='+ $.url("?id") + "&sys=" + sys, '_blank');

Callers 1

makeWorkerStatsTableFunction · 0.85

Calls 5

showComponentsFunction · 0.85
getMethod · 0.65
getDateMethod · 0.65
setMethod · 0.65
eachMethod · 0.65

Tested by

no test coverage detected