[Git][noosfero/noosfero][master] 2 commits: fix remove custom fields

Matheus Richard gitlab at mg.gitlab.com
Tue Aug 27 10:38:56 BRT 2019



Matheus Richard pushed to branch master at Noosfero / noosfero


Commits:
6890198b by Nivaldo Neto at 2019-08-24T01:19:24Z
fix remove custom fields

- - - - -
19c78725 by Matheus Richard at 2019-08-27T13:38:50Z
Merge branch 'fix-remove-custom-fields' into 'master'

fix remove custom fields

Closes #379

See merge request noosfero/noosfero!1715
- - - - -


1 changed file:

- app/views/features/custom_fields/_form.html.erb


Changes:

=====================================
app/views/features/custom_fields/_form.html.erb
=====================================
@@ -4,7 +4,7 @@
 <fieldset class="fieldbox">
   <legend><%= format_name(field.format) %></legend>
   <%= required labelled_form_field _('Name'), text_field_tag("custom_fields[#{id}][name]", field.name, :size => 30) %>
-    <%= button_to_function :delete, _('Remove field'), "remove_content('##{id}');" %>
+    <%= button :delete, _('Remove field'), '#', onclick: "remove_content('##{id}'); return false;" %>
 
     <% if field.format != "list" %>
       <%= labelled_form_field  _('Default value'), text_field_tag("custom_fields[#{id}][default_value]", field.default_value, :size => 30) %>



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/1f901e40cd00f61aeb3fc3d151faaa5c917fa78c...19c78725f27fe63b088ffd6277b1f025a2f358f2

-- 
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/1f901e40cd00f61aeb3fc3d151faaa5c917fa78c...19c78725f27fe63b088ffd6277b1f025a2f358f2
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/20190827/fb3ba1a4/attachment-0001.html>


More information about the Noosfero-dev mailing list