# HG changeset patch # User rougeronj # Date 1357142600 -3600 # Node ID 631d69850db2b79ee6946cbf580bf8eb48ba465a # Parent e186382e8e23f13475a0ff9927e362415c549dd2 start integration of chunked_upload in create content diff -r e186382e8e23 -r 631d69850db2 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 Fri Dec 14 15:16:51 2012 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/create_content.html Wed Jan 02 17:03:20 2013 +0100 @@ -10,7 +10,7 @@ {{ block.super }} - + @@ -30,16 +30,7 @@ post_added_params = {"csrfmiddlewaretoken" : "{{csrf_token}}", "{{cookie_name}}" : "{{session_key}}"}; - onCreateContentReady("{% url ldt.ldt_utils.views.content.upload %}", - '{% absstatic "ldt" %}', - post_added_params, - '{% trans "Browse" %}', - '{% trans "File uploaded" %}', - '{% trans "Please wait, the upload is not finished yet" %}', - '{% trans "Cancel upload" %}', - "{% url ldt.ldt_utils.views.content.remove_temp_file %}", - "{% url ldt.ldt_utils.views.content.get_duration %}"); - + onCreateContentReady('{% absstatic "ldt" %}', post_added_params); }); // the function stopRKey prevents from the validation of the form if the user tape enter button while entering a field function stopRKey(evt) { @@ -50,6 +41,12 @@ document.onkeypress = stopRKey; + $(function() { + chunked_uploads_video_url = function(video_url) { + return video_url; + }; + }); + {% endblock %} @@ -61,8 +58,8 @@ - - + + {% endblock %} @@ -116,14 +113,13 @@