anchor.diff:      }
   
       // check if query has some hits and disables the buttons without it
  -    function resourcesChecker(query, searchFilter) {
  +    function resourcesChecker(query, filterTypeTag) {
         var $element;
   
         $.getJSON(
  -        dataMenuItemsUrl,
  +        FilterTypeEnum.MENU.dataUrl,
           {query: query},
           function(data){
             if(data) {
  
positive.code:     }
  
      // Initialize or update filter buttons
      function initButtons(query, searchFilter) {
        initDismissButton();
        resourcesChecker(query, searchFilter);
  
        $('.atwho-header-res .title button').off();
        $('.atwho-header-res .title button').on('click', function(e) {
  
negative.code:                 $element
                    .removeClass('btn-primary')
                    .addClass('btn-default');
                  $('[data-filter="' + filterTypeTag +'"]')
                    .removeClass('btn-default')
                    .addClass('btn-primary');
                } else {
                  $element.prop('disabled', false);
                  if($element.data('filter') == filterTypeTag) {
                    $element
                      .removeClass('btn-default')
                      .addClass('btn-primary');
  