Change select2 to 4.0.13 and fix autofocus. Other minor cosmetic fix
This commit is contained in:
parent
30fd916646
commit
3adf7c73b6
@ -15,7 +15,9 @@ class PacketInfo extends Command
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $signature = 'packet:info {pkt : Packet to process} {zone? : Zone the packet is from}';
|
protected $signature = 'packet:info'
|
||||||
|
.' {pkt : Packet to process}'
|
||||||
|
.' {zone? : Zone the packet is from}';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The console command description.
|
* The console command description.
|
||||||
|
8
public/plugin/select2/fix-autofocus.js
vendored
Normal file
8
public/plugin/select2/fix-autofocus.js
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
$(document).on('select2:open',(event) => {
|
||||||
|
const searchField = document.querySelector(
|
||||||
|
`.select2-search__field[aria-controls="select2-${event.target.getAttribute('data-select2-id')}-results"]`,
|
||||||
|
);
|
||||||
|
if (searchField) {
|
||||||
|
searchField.focus();
|
||||||
|
}
|
||||||
|
});
|
@ -198,10 +198,11 @@ use App\Models\Setup;
|
|||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('page-css')
|
@section('page-css')
|
||||||
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css">
|
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/css/select2.min.css">
|
||||||
@append
|
@append
|
||||||
@section('page-scripts')
|
@section('page-scripts')
|
||||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js"></script>
|
||||||
|
<script type="text/javascript" src="{{ asset('/plugin/select2/fix-autofocus.js') }}"></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
@ -112,10 +112,11 @@ Move Address
|
|||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('page-css')
|
@section('page-css')
|
||||||
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css">
|
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/css/select2.min.css">
|
||||||
@append
|
@append
|
||||||
@section('page-scripts')
|
@section('page-scripts')
|
||||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js"></script>
|
||||||
|
<script type="text/javascript" src="{{ asset('/plugin/select2/fix-autofocus.js') }}"></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
@ -178,10 +178,11 @@
|
|||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('page-css')
|
@section('page-css')
|
||||||
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css">
|
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/css/select2.min.css">
|
||||||
@append
|
@append
|
||||||
@section('page-scripts')
|
@section('page-scripts')
|
||||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js"></script>
|
||||||
|
<script type="text/javascript" src="{{ asset('/plugin/select2/fix-autofocus.js') }}"></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user