anchor.diff:                      }
                     }
   
  -                  $(".handin-row").hide();
  -                  $(".handedin-row").show();
  -                  enableSubmit();
  +                  if (fileSelector.files.length === 1) {
  +                      $(".handin-row").hide();
  +                      $(".handedin-row").show();
  +                      enableSubmit();
  +                  }
                   }
   
                   $("#integrity_checkbox").change(function (e) {
  
positive.code:             <% end %>
              <% content_for :javascripts do %>
                <script>
                  function dropHandler(e) {
                    e.preventDefault();
                    $(".drag-drop-handin").get(0).style = undefined;
                    handleFiles(e.dataTransfer.files);
                  }
  
                  function dragOverHandler(e) {
  
negative.code:                   false
                  );
  
                  function showFiles() {
                    var fileSelector = $("#handin_show_assessment input[type='file']").get(0);
                    var file = fileSelector.files[0];
                    $("#handin-file-name").text(file.name);
                    $("#handin-modify-date").text(moment(file.lastModified).format("MMMM Do YYYY, h:mm a"));
                    submittedFile = false;
  
                    var sOutput = file.size + " bytes";
                    for (var aMultiples = ["kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], nMultiple = 0, nApprox = file.size / 1024; nApprox > 1; nApprox /= 1024, nMultiple++) {
  