--- a/src/metadatacomposer/templates/metadatacomposer_project_list.html Tue Jun 11 11:44:28 2013 +0200
+++ b/src/metadatacomposer/templates/metadatacomposer_project_list.html Tue Jun 11 13:07:00 2013 +0200
@@ -113,4 +113,24 @@
<script>
var ZeroClipboardMoviePath = "{% static 'metadatacomposer/lib/ZeroClipboard/ZeroClipboard.swf' %}";
</script>
+ <script>
+ // pagination in modal
+ $(document).on('click', 'a.content_pagination_library', function(e){
+ e.preventDefault();e.stopPropagation();
+ var url = $(this).attr('href');
+ $(this).addClass("loader");
+ $.ajax({
+ url: url,
+ cache: false,
+ type: 'GET',
+ success: function(data, status, request) {
+ $("#content_list_container_library").html(data);
+ },
+ error: function(jqXHR, textStatus, errorThrown) {
+ resp = $.parseJSON(jqXHR.responseText);
+ alert(resp.message);
+ }
+ });
+ });
+ </script>
{% endblock %}