anchor.diff:    })();
   
     function setAtWho(field) {
  -    var dataUserUrl,
  -        dataTaskUrl,
  -        dataProjectUrl,
  -        dataExperimentUrl,
  -        dataSampleUrl,
  -        dataMenuItemsUrl,
  -        prevAt,
  -        DEFAULT_SEARCH_FILTER,
  -        atWhoUpdating;
  -
  -    dataUserUrl = $(document.body).attr('data-atwho-users-url');
  -    dataTaskUrl = $(document.body).attr('data-atwho-task-url');
  -    dataProjectUrl = $(document.body).attr('data-atwho-project-url');
  -    dataExperimentUrl = $(document.body).attr('data-atwho-experiment-url');
  -    dataSampleUrl = $(document.body).attr('data-atwho-sample-url');
  -    dataMenuItemsUrl = $(document.body).attr('data-atwho-menu-items');
  -    // Default selected filter when using '#'
  -    DEFAULT_SEARCH_FILTER = 'sam';
  -    atWhoUpdating = false;
  +    var FilterTypeEnum = Object.freeze({
  +      USER:       {tag: "users",
  +                   dataUrl: $(document.body).attr('data-atwho-users-url')},
  +      TASK:       {tag: "tsk",
  +                   dataUrl: $(document.body).attr('data-atwho-task-url')},
  +      PROJECT:    {tag: "prj",
  +                   dataUrl: $(document.body).attr('data-atwho-project-url')},
  +      EXPERIMENT: {tag: "exp",
  +                   dataUrl: $(document.body).attr('data-atwho-experiment-url')},
  +      SAMPLE:     {tag: "sam",
  +                   dataUrl: $(document.body).attr('data-atwho-sample-url')},
  +      MENU:       {tag: "menu",
  +                   dataUrl: $(document.body).attr('data-atwho-menu-items')}
  +    });
  +    var prevAt,
  +        // Default selected filter when using '#'
  +        DEFAULT_SEARCH_FILTER = FilterTypeEnum.SAMPLE,
  +        atWhoUpdating = false;
   
       // helper methods for AtWho callback
       function _templateEval(_tpl, map) {
  
positive.code:       }, 100);
      }
  
      function atWhoSettings(at, defaultSearchFilter) {
        return {
          at: at,
          callbacks: {
            remoteFilter: function(query, callback) {
              var searchFilter = $('.atwho-view[style] .btn-primary')
                                  .data('filter');
  
              atWhoSwitchHack(searchFilter, function() {
                if (_.isUndefined(searchFilter)) {
                  searchFilter = defaultSearchFilter;
                }
                if(prevAt != at) {
                  prevAt = at;
                  $('.atwho-view[style]').removeAttr("style");
                  searchFilter = defaultSearchFilter;
                }
  
                var dataUrl;
                switch(searchFilter) {
                  case 'tsk':
                      dataUrl = dataTaskUrl;
                      break;
                  case 'prj':
                      dataUrl = dataProjectUrl;
                      break;
                  case 'exp':
                      dataUrl = dataExperimentUrl;
                      break;
                  case 'sam':
                      dataUrl = dataSampleUrl;
                      break;
                }
  
                $.getJSON(
                  dataUrl,
                  {query: query},
                  function(data) {
                    callback(data.res);
                    initButtons(query, searchFilter);
                  }
                );
              });
  
negative.code:       return res;
      }
  
      function _matchHighlighter(li, query, filterType) {
        var $li, re;
  
        function highlight(el, sel, re) {
  