noosfero | Removes old image when form is updated with new. (!1318)

Rodrigo Souto gitlab at mg.gitlab.com
Thu Sep 28 10:15:50 BRT 2017


Rodrigo Souto started a new discussion on plugins/custom_forms/public/field.js:

>      }
>    }
>  }
> +
> +$('#upload_form_field').each(function() {
> +   var elem = $(this);
> +
> +   elem.data('withoutImage', elem.val());
> +
> +   elem.bind("propertychange change", function(event){
> +      if (elem.data('oldVal') != elem.val()) {
> +        console.log("ENTROOOOOu");

I don't think this should be here.   ;)

---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1318#note_41778218
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170928/57173ddc/attachment.html>


More information about the Noosfero-dev mailing list