Commit 8b24632ea6dde04395782f389f029d5455141e34
1 parent
910362d5
Exists in
master
and in
23 other branches
Fixed fields options display after closing colorbox
Also fixed field size on edition of options (ActionItem2680)
Showing
3 changed files
with
4 additions
and
2 deletions
Show diff stats
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
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> | ... | ... |