Ticket #853: QAutocompleteBase.class.php.r1481.diff
| File QAutocompleteBase.class.php.r1481.diff, 0.8 KB (added by kon, 11 months ago) |
|---|
-
includes/qcubed/_core/base_controls/QAutocompleteBase.class.php
161 161 162 162 // Response to an ajax request for data 163 163 protected function prepareAjaxList($dataSource) { 164 $strJS = JavaScriptHelper::customDataRetrieval($this, self::RESPONSE_ATTR, "response");165 164 $list = $dataSource ? JavaScriptHelper::toJsObject($dataSource) : "[]"; 166 $strJS .= 'response(' . $list .');';165 $strJS = sprintf('$j("#%s").data("autocomplete").response(%s);', $this->ControlId, $list); 167 166 QApplication::ExecuteJavaScript($strJS, true); 168 167 } 169 168 … … 250 249 } 251 250 252 251 } 253 ?> 254 No newline at end of file 252 ?>
