ste/ste_script.js
/**
 * Function to collapse or expand the category group
 */
Function to collapse or expand the category group
Function to collapse or expand the category group
function collapse_expand() {
  var id = $(this).data('id');
  if(!$('.cat_' + id).length) {
    get_hosts(id);
  }
  $(this).toggleClass('fa-minus-square fa-plus-square');
  $('.cat_' + id).toggle(300);
}
function collapse_expand ( ) { var id = $ ( this ) . data ( 'id' ) ; if ( ! $ ( '.cat_' + id ) . length ) { get_hosts ( id ) ; } $ ( this ) . toggleClass ( 'fa-minus-square fa-plus-square' ) ; $ ( '.cat_' + id ) . toggle ( 300 ) ; }
Function to collapse or expand the category group
Function to collapse or expand the category group