function initializePopOverSapStatisticsData() {

             var $element = jQuery(this);

             var $requestLi = $element.parents('li[data-request-index]');
             var $interactionLi = $element.parents('li[data-interaction-index]');

             var interactionIndex = parseInt($interactionLi.attr('data-interaction-index'));
             var requestIndex = parseInt($requestLi.attr('data-request-index'));

             var interaction = that.interactions[interactionIndex];
             var request = interaction.requests[requestIndex];

             if (!interaction || !request) {
                return;
             }

             var sapStatistic = that.getRequestSapStatistics(interaction, request);

             if (sapStatistic) {
                if (!statisticsTitle.getParent()) {
                   simpleForm.addContent(statisticsTitle);
                   simpleForm.addContent(totalLabel);
                   simpleForm.addContent(totalText);
                   simpleForm.addContent(fwLabel);
                   simpleForm.addContent(fwText);
                   simpleForm.addContent(appLabel);
                   simpleForm.addContent(appText);
                }

                var statistics = sapStatistic.statistics;

                totalText.setText(that.formatDuration(parseFloat(statistics.substring(statistics.indexOf("total=") + "total=".length, statistics.indexOf(",")))));
                statistics = statistics.substring(statistics.indexOf(",") + 1);
                fwText.setText(that.formatDuration(parseFloat(statistics.substring(statistics.indexOf("fw=") + "fw=".length, statistics.indexOf(",")))));
                statistics = statistics.substring(statistics.indexOf(",") + 1);
                appText.setText(that.formatDuration(parseFloat(statistics.substring(statistics.indexOf("app=") + "app=".length, statistics.indexOf(",")))));
             } else if (statisticsTitle.getParent()) {
                simpleForm.removeContent(statisticsTitle);
                simpleForm.removeContent(totalLabel);
                simpleForm.removeContent(totalText);
                simpleForm.removeContent(fwLabel);
                simpleForm.removeContent(fwText);
                simpleForm.removeContent(appLabel);
                simpleForm.removeContent(appText);
             }
          }
function initializePopOverSapStatisticsData() {

             var $element = jQuery(this);

             var $requestLi = $element.parents('li[data-request-index]');
             var $interactionLi = $element.parents('li[data-interaction-index]');

             var interactionIndex = parseInt($interactionLi.attr('data-interaction-index'));
             var requestIndex = parseInt($requestLi.attr('data-request-index'));

             var interaction = that.interactions[interactionIndex];
             var request = interaction.requests[requestIndex];

             if (!interaction || !request) {
                return;
             }

             var sapStatistic = that.getRequestSapStatistics(interaction, request);

             if (sapStatistic) {
                if (!statisticsTitle.getParent()) {
                   simpleForm.addContent(statisticsTitle);
                   simpleForm.addContent(totalLabel);
                   simpleForm.addContent(totalText);
                   simpleForm.addContent(fwLabel);
                   simpleForm.addContent(fwText);
                   simpleForm.addContent(appLabel);
                   simpleForm.addContent(appText);
                }

                var statistics = sapStatistic.statistics;

                totalText.setText(that.formatDuration(parseFloat(statistics.substring(statistics.indexOf("total=") + "total=".length, statistics.indexOf(",")))));
                statistics = statistics.substring(statistics.indexOf(",") + 1);
                fwText.setText(that.formatDuration(parseFloat(statistics.substring(statistics.indexOf("fw=") + "fw=".length, statistics.indexOf(",")))));
                statistics = statistics.substring(statistics.indexOf(",") + 1);
                appText.setText(that.formatDuration(parseFloat(statistics.substring(statistics.indexOf("app=") + "app=".length, statistics.indexOf(",")))));
             } else if (statisticsTitle.getParent()) {
                simpleForm.removeContent(statisticsTitle);
                simpleForm.removeContent(totalLabel);
                simpleForm.removeContent(totalText);
                simpleForm.removeContent(fwLabel);
                simpleForm.removeContent(fwText);
                simpleForm.removeContent(appLabel);
                simpleForm.removeContent(appText);
             }
          }
function initializePopOverSapStatisticsData ( ) { var $element = jQuery ( this ) ; var $requestLi = $element . parents ( 'li[data-request-index]' ) ; var $interactionLi = $element . parents ( 'li[data-interaction-index]' ) ; var interactionIndex = parseInt ( $interactionLi . attr ( 'data-interaction-index' ) ) ; var requestIndex = parseInt ( $requestLi . attr ( 'data-request-index' ) ) ; var interaction = that . interactions [ interactionIndex ] ; var request = interaction . requests [ requestIndex ] ; if ( ! interaction || ! request ) { return ; } var sapStatistic = that . getRequestSapStatistics ( interaction , request ) ; if ( sapStatistic ) { if ( ! statisticsTitle . getParent ( ) ) { simpleForm . addContent ( statisticsTitle ) ; simpleForm . addContent ( totalLabel ) ; simpleForm . addContent ( totalText ) ; simpleForm . addContent ( fwLabel ) ; simpleForm . addContent ( fwText ) ; simpleForm . addContent ( appLabel ) ; simpleForm . addContent ( appText ) ; } var statistics = sapStatistic . statistics ; totalText . setText ( that . formatDuration ( parseFloat ( statistics . substring ( statistics . indexOf ( "total=" ) + "total=" . length , statistics . indexOf ( "," ) ) ) ) ) ; statistics = statistics . substring ( statistics . indexOf ( "," ) + 1 ) ; fwText . setText ( that . formatDuration ( parseFloat ( statistics . substring ( statistics . indexOf ( "fw=" ) + "fw=" . length , statistics . indexOf ( "," ) ) ) ) ) ; statistics = statistics . substring ( statistics . indexOf ( "," ) + 1 ) ; appText . setText ( that . formatDuration ( parseFloat ( statistics . substring ( statistics . indexOf ( "app=" ) + "app=" . length , statistics . indexOf ( "," ) ) ) ) ) ; } else if ( statisticsTitle . getParent ( ) ) { simpleForm . removeContent ( statisticsTitle ) ; simpleForm . removeContent ( totalLabel ) ; simpleForm . removeContent ( totalText ) ; simpleForm . removeContent ( fwLabel ) ; simpleForm . removeContent ( fwText ) ; simpleForm . removeContent ( appLabel ) ; simpleForm . removeContent ( appText ) ; } }
/* eslint-enable no-loop-func
/ * eslint - enable no - loop - func
Initializes the statistics data for the popover