Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
field system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2012 at 19:06 UTC
Updated:
25 Mar 2012 at 03:14 UTC
Now field_ui.admin.inc attach CSS and JS directly with #attached.
615: $form['#attached']['css'][] = drupal_get_path('module', 'field_ui') . '/field_ui.css';
616: $form['#attached']['js'][] = drupal_get_path('module', 'field_ui') . '/field_ui.js';
This is a problem for jquery_update #1448494: jQuery 1.7: field_ui.js use attr for property we can not replace this file with hook_library_alter().
Should we make a form_alter or it will be more appropriate to add CSS and JS using hook_library and add_library?
Comments
Comment #1
gagarine commentedI finnaly end up using hook_js_alter https://drupal.org/node/1448494#comment-5767046 . But I will like if someone can tell me if it's ok.
Comment #2
nod_That's exactly what this hook is for, so yes, it's ok.
field_ui is not really a library, that's the right way to do it.
Comment #3
gagarine commentedThanks
Comment #3.0
gagarine commentedUpdated issue summary.