Update schedule editor

This commit is contained in:
Mathieu Lagace
2019-12-23 17:57:41 -05:00
parent 2c18dc8c1d
commit c20024ed96
9 changed files with 229 additions and 44 deletions

View File

@@ -103,4 +103,14 @@ function initAutoComplete(htmlClass)
autocomplete(document.getElementById(this.id), users);
})
});
}
function initAutoCompleteOCOM(htmlClass)
{
$.get('/api/ocom/list?api_token='+api_token, function ( data ) {
var ocoms = JSON.parse(data);
$("."+htmlClass).each(function ( index ) {
autocomplete(document.getElementById(this.id), ocoms);
})
});
}