Commit 8b24632ea6dde04395782f389f029d5455141e34

Authored by Daniela Feitosa
1 parent 910362d5

Fixed fields options display after closing colorbox

Also fixed field size on edition of options
(ActionItem2680)
plugins/custom_forms/public/field.js
... ... @@ -8,7 +8,6 @@ jQuery('.icon-edit').live('click', function() {
8 8 id = jQuery(elem).attr('field_id');
9 9 type = jQuery('#fields_'+id+'_type').val().split('_')[0];
10 10 selector = '#edit-'+type+'-'+id
11   - jQuery(selector).show();
12 11 return selector
13 12 }
14 13 });
... ...
plugins/custom_forms/public/style.css
... ... @@ -28,3 +28,6 @@
28 28 .edit-information {
29 29 display: none;
30 30 }
  31 +#colorbox .edit-information {
  32 + display: block;
  33 +}
... ...
plugins/custom_forms/views/custom_forms_plugin_myprofile/_empty_option.html.erb
1 1 <tr id=<%= "empty-option-#{counter}" %> option_id=<%= option_counter %> style="display: none;">
2 2 <td><%= text_field_tag("fields[#{counter}][choices][#{option_counter}][name]") %></td>
3   - <td><%= text_field_tag("fields[#{counter}][choices][#{option_counter}][value]", nil, :size => 15) %></td>
  3 + <td><%= text_field_tag("fields[#{counter}][choices][#{option_counter}][value]") %></td>
4 4 <td class='actions'>
5 5 <%= button_without_text :remove, _('Remove'), '#', :class => 'remove-option', :field_id => counter, :option_id => option_counter, :confirm => _('Are you sure you want to remove this option?') %>
6 6 </td>
... ...