Merge pull request #1155 from TheDen/add-search-application-item

add search via select2 for application dropdown
This commit is contained in:
KodeStar
2024-02-12 19:44:23 +00:00
committed by GitHub
2 changed files with 8 additions and 1 deletions

View File

@@ -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')) !!}

View File

@@ -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) {