kafka-eagle-web/src/main/webapp/media/js/main/metrics/kafka.js
// init module show or hide & bind change event
init module show or hide & bind change event
init module show or hide & bind change event
function initModuleVisualAndBingding() {
        $('.checkbox').find('input[type="checkbox"]').each(function () {
            var that = this;
            if ($(that).is(':checked')) {
                module('#'+$(that).attr('name'), true);
            } else {
                module('#'+$(that).attr('name'), false);
            }
            $(that).click(function () {
                if ($(that).is(':checked')) {
                    module('#'+$(that).attr('name'), true);
                    stime = reportrange[0].innerText.replace(/-/g, '').split("To")[0].trim();
                    etime = reportrange[0].innerText.replace(/-/g, '').split("To")[1].trim();
                    mbeanRealtime(stime, etime, type, getCheckedModules());
                    $('svg').css('width', '100%');
                    return;
                }
                module('#'+$(that).attr('name'), false);
            });
        });
    }
function initModuleVisualAndBingding ( ) { $ ( '.checkbox' ) . find ( 'input[type="checkbox"]' ) . each ( function ( ) { var that = this ; if ( $ ( that ) . is ( ':checked' ) ) { module ( '#' + $ ( that ) . attr ( 'name' ) , true ) ; } else { module ( '#' + $ ( that ) . attr ( 'name' ) , false ) ; } $ ( that ) . click ( function ( ) { if ( $ ( that ) . is ( ':checked' ) ) { module ( '#' + $ ( that ) . attr ( 'name' ) , true ) ; stime = reportrange [ 0 ] . innerText . replace ( / - / g , '' ) . split ( "To" ) [ 0 ] . trim ( ) ; etime = reportrange [ 0 ] . innerText . replace ( / - / g , '' ) . split ( "To" ) [ 1 ] . trim ( ) ; mbeanRealtime ( stime , etime , type , getCheckedModules ( ) ) ; $ ( 'svg' ) . css ( 'width' , '100%' ) ; return ; } module ( '#' + $ ( that ) . attr ( 'name' ) , false ) ; } ) ; } ) ; }
init module show or hide & bind change event
init module show or hide & bind change event