noosfero | adding thumbnail in editing profile picture (!1354)

Rodrigo Souto gitlab at mg.gitlab.com
Tue Nov 28 11:20:36 BRST 2017


Rodrigo Souto started a new discussion on app/views/shared/_change_image.html.erb:

> -<%= file_field_tag("#{for_attr}[uploaded_data]", { :onchange => 'updateImg(this.value)' } ) %>
> +<%= file_field_tag("#{for_attr}[uploaded_data]", { :onchange => 'updateImg(this.value)', :id => "pictureInput" } ) %>
>  <%= labelled_form_field(_("Image Label:"), text_field_tag("#{for_attr}[label]")) %>
>  <%= button_to_function(:cancel,_('Cancel'),"jQuery('#change-image-link').show(); jQuery('#change-image').hide()", :id => 'cancel-change-image-link', :style => 'display: none')%>
> +
> +<script type="text/javascript">

Move this js to a separate file and include it here using `javascript_include_tag` since you don't need to use ruby inline.

---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1354#note_48975841
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/20171128/dae012c1/attachment.html>


More information about the Noosfero-dev mailing list