Aggiunto autocomplete categorie

This commit is contained in:
Thomas Zilio 2018-07-02 17:15:25 +02:00
parent 2e04eed66f
commit 0601fa7898
1 changed files with 15 additions and 0 deletions

View File

@ -189,6 +189,21 @@ class FileManager implements ManagerInterface
<script>
$(document).ready(function(){
$("#'.$attachment_id.' #categoria").autocomplete({
source: [';
foreach ($categories as $category) {
$result .= '
"'.$category['category'].'",';
}
$result .= '
],
minLength: 0
}).focus(function() {
$(this).autocomplete("search", $(this).val())
});;
data = {
op: "link_file",
id_module: "'.$options['id_module'].'",