noosfero | Removes old image when form is updated with new. (!1318)
David Carlos
gitlab at mg.gitlab.com
Thu Sep 28 21:04:11 BRT 2017
David Carlos commented on a 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 removed this code, and add the thumbnail image,when it exists.
![photo5073421928353605625](/uploads/7b564f9137f99e2901cf55261f1d7c06/photo5073421928353605625.jpg)
---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1318#note_41840603
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/20170929/885ace9e/attachment-0001.html>
More information about the Noosfero-dev
mailing list