diff --git a/cadasta/core/static/js/file-upload.js b/cadasta/core/static/js/file-upload.js index d8add2641..9506f177d 100644 --- a/cadasta/core/static/js/file-upload.js +++ b/cadasta/core/static/js/file-upload.js @@ -24,4 +24,9 @@ $(function() { }); + $('a.file-remove').click(function() { + $('.file-well .errorlist').addClass('hidden'); + $(this).parents('.form-group').removeClass('has-error'); + }); + }); diff --git a/cadasta/templates/organization/project_add_details.html b/cadasta/templates/organization/project_add_details.html index 9d08da87e..430746053 100644 --- a/cadasta/templates/organization/project_add_details.html +++ b/cadasta/templates/organization/project_add_details.html @@ -20,11 +20,6 @@ img.css('display', 'none'); } }); - $('a.file-remove').click(function() { - $('.file-well .errorlist').addClass('hidden'); - $(this).parents('.form-group') - .removeClass('has-error'); - }); }); {% endblock %} diff --git a/cadasta/templates/organization/project_edit_details.html b/cadasta/templates/organization/project_edit_details.html index 39729379b..166bf5ecd 100644 --- a/cadasta/templates/organization/project_edit_details.html +++ b/cadasta/templates/organization/project_edit_details.html @@ -6,15 +6,6 @@ {% block extra_script %} {{ form.media }} - {% endblock %} {% block page_title %}{% trans "Edit project details" %} | {% endblock %}