Mercurial > defr > drupal > popups_reference
comparison popups_reference.module @ 7:571a89603e2b
Ajout du type noderef_view_autocomplete
author | Franck Deroche <franck@defr.org> |
---|---|
date | Thu, 19 Mar 2009 11:42:25 +0100 |
parents | 990f71344a66 |
children | 108ced764a40 |
comparison
equal
deleted
inserted
replaced
6:990f71344a66 | 7:571a89603e2b |
---|---|
119 function _popups_reference_links($field, $src_type, $wrapper_id, $widget_type) { | 119 function _popups_reference_links($field, $src_type, $wrapper_id, $widget_type) { |
120 if ($widget_type == 'nodereference_select' || $widget_type == 'nodereference_buttons') { | 120 if ($widget_type == 'nodereference_select' || $widget_type == 'nodereference_buttons') { |
121 // Target the wrapper for replacing. | 121 // Target the wrapper for replacing. |
122 popups_add_popups(array('a.'.$wrapper_id=>array('targetSelectors'=>array('#'.$wrapper_id)))); | 122 popups_add_popups(array('a.'.$wrapper_id=>array('targetSelectors'=>array('#'.$wrapper_id)))); |
123 } | 123 } |
124 else if ($widget_type == 'nodereference_autocomplete') { | 124 else if ($widget_type == 'nodereference_autocomplete' || $widget_type == 'noderef_view_autocomplete') { |
125 // Don't replace the autocomplete when done. | 125 // Don't replace the autocomplete when done. |
126 popups_add_popups(array('a.'.$wrapper_id=>array('noUpdate'=>TRUE))); | 126 popups_add_popups(array('a.'.$wrapper_id=>array('noUpdate'=>TRUE))); |
127 } | 127 } |
128 else { // Unsupported type. | 128 else { // Unsupported type. |
129 return; | 129 return; |