# HG changeset patch # User grandjoncl # Date 1348477299 -7200 # Node ID e4180c2d11ebee44ce28ab8287c84689bd54f803 # Parent 12ba862f33fa3f31fe600ad43dbcfe2313960ba4 Modifications in order to download the thumbnail picture and put it as default picture when creating youtube, dailymotion or vimeo contents diff -r 12ba862f33fa -r e4180c2d11eb 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 Thu Sep 20 12:43:02 2012 +0200 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/create_content.html Mon Sep 24 11:01:39 2012 +0200 @@ -37,6 +37,7 @@ "{% url ldt.ldt_utils.views.content.get_duration %}"); }); + // the function stopRKey prevents from the validation of the form if the user tape enter button while entering a field function stopRKey(evt) { var evt = (evt) ? evt : ((event) ? event : null); var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null); @@ -51,11 +52,19 @@ {% block css_import %} {{ block.super }} - {#{ content_form.media.css }#} + {{ content_form.media.css }} + + + + + + {% endblock %} {% block content %} + + {% if media_form.errors %}
{% trans "The operation could not be performed because one or more error(s) occurred.
Please resubmit the media form after making the following changes:" %}