anchor.diff:        });
   
     });
  -</script>+</script>
  +
  +<script type="text/javascript">
  +	$(function() {
  +		$('#submit_button').click(function(){
  +			if (	($('#delete_button').length == 0) && ($('#delete_link').length == 0)		) {
  +				alert("You must upload at least one file.")
  +				return false;
  +			};
  +		});
  +	});
  +</script>
  +
  +
  +
  
positive.code:         <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
          {% } %}
        <td class="delete">
          <button class="btn btn-danger" data-type="{%=file.delete_type%}" data-url="{%=file.delete_url%}">
            <i class="icon-trash icon-white"></i>
            <span>{%=locale.fileupload.destroy%}</span>
          </button>
  
negative.code: 							<div>
  								<ul>
  									<% @uploads.each do |upload| %>
  									<li id="delete_link">
  										<%= upload.upload_file_name %> <%= link_to "delete", "datauploads/#{upload.id}/delete", :confirm => "Are you sure?" %>
  									</li>
  								<% end %>
  								</ul>
  							</div>
  