The widget process function references_dialog_process_widget currently overwrites the #attached element of the node_reference textfield. To respect changes by other modules additions to the js, css and library elements should be appended instead.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | attach-1485218-1.diff | 948 bytes | stefan freudenberg |
Comments
Comment #1
stefan freudenberg commentedHere's a quick fix that appends to the js, css and library elements. This can be rewritten in a more elegant manner, I am sure. I wonder if references_dialog_element_info() is really needed, where the function references_dialog_attached() is also used.
Comment #2
fabsor commentedGreat idea! commited.
http://drupal.org/commitlog/commit/23918/f43c559b6e4f35ce7c69de0c31e2fd3...