anchor.diff:  
     // The auto_refresh button is a toggle, it shows what will happen if
     // you press it. That is, it displays the opposite of the current state
  -  $('#auto_refresh').click();
  +  autoRefreshButton.click();
   });
   
   //--></script>
  
positive.code:     }
    });
    
    $('#auto_refresh').click(function() {
      autoRefreshEnabled = !autoRefreshEnabled;
      setRefreshButtonText();
    });
  
negative.code: $(document).ready(function() {
  
    var autoRefreshEnabled = "<%= @auto_refresh %>" === "true";  
    var autoRefreshButton = $('#auto_refresh');
    
    var setRefreshButtonText = function() {
      //var button = $('#auto_refresh');
      if (autoRefreshEnabled) {
        autoRefreshButton.text("<%= t('views.buttons.enable') %>");
      } else {
        autoRefreshButton.text("<%= t('views.buttons.disable') %>");
      }    
    };
    
  