{% extends "admin/change_list.html" %}
{% load adminmedia admin_list i18n %}

{% block extrastyle %}
  {{ block.super }}
{% endblock %}

{% block extrahead %}
{{ block.super }}
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="{{ MEDIA_URL }}photos/js/ajaxupload.js" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function(){

	var uploader = new qq.FileUploader({
    
    element: document.getElementById('file-uploader'),
    // path to server-side upload script
    action: '/server/upload'
}); 
	

});
</script>

{% endblock %}

    {% block object-tools %}
      {% if has_add_permission %}
        <ul class="object-tools">
        <li>
        <div id="file-uploader">Add some files</div>
        </li>
          <li>
            <a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink">
              {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
            </a>
          </li>
        </ul>
      {% endif %}
    {% endblock %}
