Skip to content

Commit

Permalink
Merge pull request linuxserver#1155 from TheDen/add-search-applicatio…
Browse files Browse the repository at this point in the history
…n-item

add search via select2 for application dropdown
  • Loading branch information
KodeStar authored Feb 12, 2024
2 parents 2e96b7b + 427353b commit ecb668a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/items/form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</div>
<div class="appoptions">
<div class="optdetails">
<div><button class="dark">{{ __('app.apps.apptype') }}</button></div>
<div><button id="optdetails-button" class="dark">{{ __('app.apps.apptype') }}</button></div>
<div class="optvalue">
<div class="input">
{!! Form::select('appid', App\Application::applist(), null, array('class' => 'form-control config-item', 'id' => 'apptype', 'data-config' => 'type')) !!}
Expand Down
7 changes: 7 additions & 0 deletions resources/views/items/scripts.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@
})
$('.tags').select2();
document.getElementById('optdetails-button').addEventListener("click", function(event) {
$('#apptype').select2({
placeholder: "Select...",
allowClear: true,
width: "100%"
});
}, {once: true});
if($('#appurl').val() !== '') {
if ($('#appurl').val().indexOf("://") !== -1) {
Expand Down

0 comments on commit ecb668a

Please sign in to comment.