{% extends 'obj_form.html' %} {% block js %} {{ block.super }} $('#image-clear_id,#id_image').removeClass('form-control'); $('.btn-save').click(function(){ $.SubmitForm('#obj_form form','{{request.path}}',function (){ $('.alert').fadeIn(); setTimeout(function (){ $('.alert').fadeOut(); },3000) }); }); $('#obj_form .product_photo a').click(function(event){ event.preventDefault(); var src=$(this).attr('href'); var i="