anchor.diff:  
           $("#reload").click(function() {
               hashchange();
  +        });
  +
  +        $("#confirmStopRestart").click(function() {
  +            var name = $("#stopRestartModal").attr("data-name");
  +            var type = $("#stopRestartModal").attr("data-type");
  +            if (type == "Stop") {
  +                doStop(name);
  +            } else {
  +                doRestart(name);
  +            }
  +            $("#stopRestartModal").modal('hide');
  +            return false;
           });
       })
   </script>
  
positive.code:         $.each(state, function(id, content) {
              var allStatesLink = '<a href="#" class="btn" onclick="$.bbq.pushState(\'#mode=details&file=' + content
                      .entity.name + '\', 0); return false"><i class="icon-list"></i> Show all states</a>';
              var stopLink = '<a href="#" class="btn" onclick="stop(\'' + content.entity.name
                      + '\'); return false"><i class="icon-stop"></i> Stop</a>';
              var restartLink = '<a href="#" class="btn" onclick="restart(\'' + content.entity.name
                      + '\'); return false"><i class="icon-play"></i> Restart</a>';
  
              var item = "<tr>";
  
negative.code: </div>
  <!-- /container -->
  
  <div class="modal hide" id="stopRestartModal">
      <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal">×</button>
          <h3>Warning: This file may still be in progress</h3>
      </div>
      <div class="modal-body">
          <p>
              If this file is still in the process of going through the workflow, your request to stop or restart the file
              may be ignored.
          </p>
  
          <p>
              Only press OK if you are sure the workflow has unexpectedly stopped during execution.
          </p>
      </div>
      <div class="modal-footer">
          <a href="#" class="btn" data-dismiss="modal">Cancel</a>
          <a id="confirmStopRestart" href="#" class="btn btn-primary">OK</a>
      </div>
  </div>
  
  <!-- Le javascript
  ================================================== -->
  <!-- Placed at the end of the document so the pages load faster -->
  