Changeset 12397
- Timestamp:
- 09/20/07 13:37:12 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.helper.datamanager2/exec/universalchooser_handler.php
r11263 r12397 234 234 235 235 236 $title = @$object->$gotfield;236 $title = rawurlencode(@$object->$gotfield); 237 237 debug_add("adding result: id={$id} title='{$title}' titlefield='{$gotfield}'"); 238 238 echo " <line>\n"; trunk/midcom/midcom.helper.datamanager2/static/universalchooser.js
r4864 r12397 179 179 { 180 180 /* Render a result in the results list */ 181 jsCall = 'javascript:midcom_helper_datamanager2_widget_universalchooser_add_option("' + this.idsuffix + '", "' + key + '", \'' + title+ '\');';181 jsCall = 'javascript:midcom_helper_datamanager2_widget_universalchooser_add_option("' + this.idsuffix + '", "' + key + '", \'' + escape(title) + '\');'; 182 182 result_li = this.create_element('li', null, false); 183 183 result_link = this.create_element('a', … … 191 191 result_li.appendChild(result_link); 192 192 this.results_ul.appendChild(result_li); 193 new Insertion.Top(result_link, title);193 new Insertion.Top(result_link, unescape(title)); 194 194 }, 195 195 … … 243 243 break; 244 244 } 245 html += '<label for="' + input_id + '">' + title+ '</label>\n';245 html += '<label for="' + input_id + '">' + unescape(title) + '</label>\n'; 246 246 247 247 new Insertion.Bottom(this.fieldname + '_fieldset', html)
