Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert type='module' on components scripts due to backward compatibility issues #1313

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/views/components/form/date-range.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{-- Add plugin initialization and configuration code --}}

@push('js')
<script type="module">
<script>

$(() => {
let usrCfg = _AdminLTE_DateRange.parseCfg( @json($config) );
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form/input-color.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{-- Add plugin initialization and configuration code --}}

@push('js')
<script type="module">
<script>

$(() => {

Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form/input-date.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{-- Add plugin initialization and configuration code --}}

@push('js')
<script type="module">
<script>

$(() => {
let usrCfg = _AdminLTE_InputDate.parseCfg( @json($config) );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
{{-- Add the plugin initialization code --}}

@push('js')
<script type="module">
<script>

$(() => {

Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form/input-file.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

@once
@push('js')
<script type="module">
<script>

$(() => {
bsCustomFileInput.init();
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form/input-slider.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{-- Add plugin initialization and configuration code --}}

@push('js')
<script type="module">
<script>

$(() => {
let usrCfg = @json($config);
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form/input-switch.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{-- Add plugin initialization and configuration code --}}

@push('js')
<script type="module">
<script>

$(() => {
$('#{{ $id }}').bootstrapSwitch( @json($config) );
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form/select-bs.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{{-- Add plugin initialization and configuration code --}}

@push('js')
<script type="module">
<script>

$(() => {
$('#{{ $id }}').selectpicker( @json($config) );
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form/select.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

@if($errors->any() && $enableOldSupport)
@push('js')
<script type="module">
<script>

$(() => {

Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form/select2.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{{-- Add plugin initialization and configuration code --}}

@push('js')
<script type="module">
<script>

$(() => {
$('#{{ $id }}').select2( @json($config) );
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form/text-editor.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{{-- Add plugin initialization and configuration code --}}

@push('js')
<script type="module">
<script>

$(() => {
let usrCfg = @json($config);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

@once
@push('js')
<script type="module">
<script>

$(() => {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

@if (! is_null($makeUpdateUrl()) && $makeUpdatePeriod() > 0)
@push('js')
<script type="module">
<script>

$(() => {

Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/tool/datatable.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{{-- Add plugin initialization and configuration code --}}

@push('js')
<script type="module">
<script>

$(() => {
$('#{{ $id }}').DataTable( @json($config) );
Expand Down