anchor.diff:          });
   
           // tell the autocomplete to launch a new tab with the topic, map, or mapper you clicked on
  -        $('.sidebarSearchField').bind('typeahead:selected', self.handleResultClick);
  +        $('.sidebarSearchField').bind('typeahead:select', self.handleResultClick);
           
           // don't do it, if they clicked on a 'addToMap' button
           $('.sidebarSearch button.addToMap').click(function (event) {
  
positive.code:         });
  
          // make sure that when you click on 'limit to me' or 'toggle section' it works
          $('.sidebarSearchField').bind('typeahead:queryChanged', function(){
              if ($(this).val() === "") {
                  self.hideLoader();
              }
  
negative.code:         var topics = {
              name: 'topics',
              limit: 9999,
              
              display: function(s) { return s.label; },
              templates: {
                  notFound: function(s) {
                      return Hogan.compile($('#topicSearchTemplate').html()).render({
                          value: "No results",
                          label: "No results",
                          typeImageURL: "<%= asset_path('icons/wildcard.png') %>",
                          rtype: "noresult"
                      });
                  },
                  header: topicheader,
                  suggestion: function(s) {
                      return Hogan.compile($('#topicSearchTemplate').html()).render(s);
                  },
              },
              source: new Bloodhound({
                  datumTokenizer: Bloodhound.tokenizers.obj.whitespace('value'),
                  queryTokenizer: Bloodhound.tokenizers.whitespace,
                  remote: {
                      url: '/search/topics',
                      prepare: function(query, settings) {
                          settings.url += '?term=' + $('.sidebarSearchField').val();
                          if (Metamaps.Active.Mapper && $("#limitTopicsToMe").is(':checked')) {
                              settings.url += "&user=" + Metamaps.Active.Mapper.id.toString();
                          }
                          return settings;
                      },
                  },
              }),
          };
  
          var maps = {
              name: 'maps',
              limit: 9999,
              display: function(s) { return s.label; },
              templates: {
                  notFound: function(s) {
                      return Hogan.compile($('#mapSearchTemplate').html()).render({
                          value: "No results",
                          label: "No results",
                          rtype: "noresult"
                      });
                  },
                  header: mapheader,
                  suggestion: function(s) {
                      return Hogan.compile($('#mapSearchTemplate').html()).render(s);
                  },
              },
              source: new Bloodhound({
                  datumTokenizer: Bloodhound.tokenizers.obj.whitespace('value'),
                  queryTokenizer: Bloodhound.tokenizers.whitespace,
                  remote: {
                      url: '/search/maps',
                      prepare: function(query, settings) {
                          settings.url += '?term=' + $('.sidebarSearchField').val();
                          if (Metamaps.Active.Mapper && $("#limitMapsToMe").is(':checked')) {
                              settings.url += "&user=" + Metamaps.Active.Mapper.id.toString();
                          }
                          return settings;
                      },
                  },
              }),
          };
  
          var mappers = {
              name: 'mappers',
              limit: 9999,
              display: function(s) { return s.label; },
              templates: {
                  notFound: function(s) {
                      return Hogan.compile($('#mapperSearchTemplate').html()).render({
                          value: "No results",
                          label: "No results",
                          rtype: "noresult",
                          profile: "<%= asset_path('user.png') %>",
                      });
                  },
                  header: mapperheader,
                  suggestion: function(s) {
                      return Hogan.compile($('#mapperSearchTemplate').html()).render(s);
                  },
              },
              source: new Bloodhound({
                  datumTokenizer: Bloodhound.tokenizers.obj.whitespace('value'),
                  queryTokenizer: Bloodhound.tokenizers.whitespace,
                  remote: {
                      url: '/search/maps?term=%QUERY',
                      wildcard: '%QUERY',
                  },
              }),
          };
  
          // Take all that crazy setup data and put it together into one beautiful typeahead call!
          $('.sidebarSearchField').typeahead(
              {
                  highlight: true,
              },
              [topics, maps, mappers]
          );
  
          //Set max height of the search results box to prevent it from covering bottom left footer
          $('.sidebarSearchField').bind('typeahead:render', function (event) {
              self.initSearchOptions();
              self.hideLoader();
              var h = $(window).height();
  