From e0e4b0264d62656f42f649b249af4428c0929e57 Mon Sep 17 00:00:00 2001 From: Deon George Date: Mon, 24 Feb 2025 21:55:12 +1100 Subject: [PATCH] Remove data- elements in resources/ we didnt end on using them --- resources/views/components/attribute-type.blade.php | 2 +- .../views/components/attribute/widget/options.blade.php | 5 ----- resources/views/components/form/select.blade.php | 2 +- resources/views/frames/dn.blade.php | 2 +- 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/resources/views/components/attribute-type.blade.php b/resources/views/components/attribute-type.blade.php index 23fde0fb..7484a445 100644 --- a/resources/views/components/attribute-type.blade.php +++ b/resources/views/components/attribute-type.blade.php @@ -4,7 +4,7 @@
- {{ $o->name }} + {{ $o->name }} @foreach($o->hints as $name => $description) diff --git a/resources/views/components/attribute/widget/options.blade.php b/resources/views/components/attribute/widget/options.blade.php index c62c0127..fdf7aa8d 100644 --- a/resources/views/components/attribute/widget/options.blade.php +++ b/resources/views/components/attribute/widget/options.blade.php @@ -76,10 +76,6 @@ if (added_oc.sort().join('|') == newadded.sort().join('|')) return; - var attrs = $('[data-attr-name]').map(function() { - return $(this).data('attrName'); - }); - // Find out what was selected, and add them newadded.forEach(function (item) { if (added_oc.indexOf(item) !== -1) @@ -152,7 +148,6 @@ url: '{{ url('api/schema/objectclass/attrs') }}/'+item, cache: false }); - }); // Loop through added_oc, and remove anything not in newadded diff --git a/resources/views/components/form/select.blade.php b/resources/views/components/form/select.blade.php index 6a11feb7..23cb1489 100644 --- a/resources/views/components/form/select.blade.php +++ b/resources/views/components/form/select.blade.php @@ -52,7 +52,7 @@ theme: 'bootstrap-5', dropdownAutoWidth: true, width: 'style', - allowClear: {{ $allowclear ?? 'true' }}, + allowClear: {{ $allowclear ?? 'false' }}, placeholder: '{{ $placeholder ?? '' }}', @isset($addvalues) tags: true, diff --git a/resources/views/frames/dn.blade.php b/resources/views/frames/dn.blade.php index bdc5b42f..79014c1d 100644 --- a/resources/views/frames/dn.blade.php +++ b/resources/views/frames/dn.blade.php @@ -31,7 +31,7 @@ @foreach ($o->getVisibleAttributes() as $ao) - + @endforeach