We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f0317e commit 96f80beCopy full SHA for 96f80be
resources/views/components/range-slider.blade.php
@@ -51,7 +51,7 @@
51
52
@pushOnce('customJs')
53
<script src="{{ asset('libs/nouislider/dist/nouislider.min.js') }}"></script>
54
- <script>
+ <script hx-swap-oob="true" id="slider-format">
55
let formatForSlider = {
56
from: function(formattedValue) {
57
return Number(formattedValue);
@@ -64,7 +64,7 @@
64
@endPushOnce
65
66
@push('customJs')
67
+ <script hx-swap-oob="true" id="slider-config">
68
function sliderConfig() {
69
70
let from = parseInt('{{ $from }}')
@@ -120,6 +120,8 @@ function sliderConfig() {
120
slider.noUiSlider.set([null, value]);
121
})
122
}
123
- sliderConfig()
+ $(function() {
124
+ sliderConfig()
125
+ })
126
</script>
127
@endpush
0 commit comments