mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
Update schedule editor
This commit is contained in:
10
public/js/plugins/autocomplete.js
vendored
10
public/js/plugins/autocomplete.js
vendored
@@ -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);
|
||||
})
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user