Last active
          August 29, 2015 13:57 
        
      - 
      
- 
        Save darioghilardi/9365728 to your computer and use it in GitHub Desktop. 
    Coding Style
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | diff --git a/sites/all/modules/features/elite_base/elite_base.module b/sites/all/modules/features/elite_base/elite_base.module | |
| index 71474bc..60ee47b 100644 | |
| --- a/sites/all/modules/features/elite_base/elite_base.module | |
| +++ b/sites/all/modules/features/elite_base/elite_base.module | |
| @@ -361,7 +361,7 @@ function elite_base_form_user_profile_form_alter(&$form, &$form_state) { | |
| $field_view = render($field_view); | |
| $form[$fc]['#prefix'] .= | |
| - '<div id="btn-custom-container"><button id="add-' . $fc . '" class="add-new-field-collection-item" type="button">' . t('Add new') . '</button>' . | |
| + '<div id="btn-custom-container"><button id="add-' . $fc . '" class="add-new-field-collection-item" type="button" role="' . $fc . '">' . t('Add new') . '</button>' . | |
| '<span class="edit-field-collection" id="edit-' . $fc . '">' . t('Edit') . '</span></div>'; | |
| $form[$fc]['#prefix'] .= '<div class="field_view" id="view-' . $fc . '">' . $field_view . '</div>'; | |
| @@ -369,7 +369,7 @@ function elite_base_form_user_profile_form_alter(&$form, &$form_state) { | |
| else { | |
| $field_title = $form[$fc][$form[$fc]['#language']]['#title']; | |
| $form[$fc]['#prefix'] .= | |
| - '<div id="btn-custom-container"><button id="fake-add-' . $fc . '" class="fake-add-new-field-collection-item" type="button">' . t('Add new') . '</button></div>'; | |
| + '<div id="btn-custom-container"><button id="fake-add-' . $fc . '" class="fake-add-new-field-collection-item" type="button" role="' . $fc . '">' . t('Add new') . '</button></div>'; | |
| $form[$fc]['#prefix'] .= '<div class="field_view" id="view-' . $fc . '"><h3 class="fake-fc-title">' . $field_title . '</h3></div>'; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment