mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-02-21 20:20:34 +09:00
Merge pull request #1155 from TheDen/add-search-application-item
add search via select2 for application dropdown
This commit is contained in:
@@ -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')) !!}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user