This commit is contained in:
KodeStar
2018-02-05 19:43:24 +00:00
parent 3f20fe75c6
commit 83f2a81e91
14 changed files with 141 additions and 6 deletions

View File

@@ -0,0 +1,20 @@
<script>
$( function() {
var availableTags = [
<?php
$supported = App\Item::supportedOptions();
foreach($supported as $sapp) {
echo '"'.$sapp.'",';
}
?>
];
$( "#appname" ).autocomplete({
source: availableTags,
select: function( event, ui ) {
$.post('/appload', { app: ui.item.value }, function(data) {
alert(data);
});
}
});
});
</script>