radarrplexorganizrnginxsonarrdashboardserverhomepagesabnzbdheimdallembycouchpotatonzbgetbookmarkapplication-dashboardmuximuxlandingpagestartpagelandinghtpc
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
785 B
21 lines
785 B
<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) {
|
|
$('#appimage').html("<img src='/storage/"+data.icon+"' /><input type='hidden' name='icon' value='"+data.icon+"' />");
|
|
$('input[name=colour]').val(data.colour);
|
|
}, "json");
|
|
}
|
|
});
|
|
});
|
|
</script>
|