# HG changeset patch # User rougeronj # Date 1358160048 -3600 # Node ID f6a9dbf31cf9e01441c94491fd7f813868c09dd0 # Parent 6961dae2de7b37b6c0d1ff244ce3ea92472c3499 add callback functions to communicate with jquery.chunked_uploads diff -r 6961dae2de7b -r f6a9dbf31cf9 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/create_content.html --- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/create_content.html Mon Jan 07 16:06:59 2013 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/create_content.html Mon Jan 14 11:40:48 2013 +0100 @@ -43,7 +43,6 @@ chunked_uploads_endpoints = { jqXHR : null, - base_url: '{{WEB_URL}}', upload_url: '{{WEB_URL}}{% url upload %}', done_url: '{{WEB_URL}}{% url upload_done uuid='00000000-0000-0000-0000-000000000000' %}', file_type: '{{ file_type }}', @@ -59,6 +58,24 @@ $("#media_field_create").show(); $('#upload_url').append(video_url); }; + + //callback of chunked upload start + chunked_uploads_start = function(){ + }; + + //callback of chunked upload stop + chunked_uploads_stop = function(){ + }; + + //callback of chunked upload error + chunked_uploads_error = function(error_bool){ + return error_bool; + }; + + //callback of chunked upload complete + chunked_uploads_complete = function(complete_bool){ + return complete_bool; + }; }); @@ -167,5 +184,5 @@ - + {% endblock %}