Compare commits

..

2 Commits

Author SHA1 Message Date
ae6eff4aa9 Release v2.1.0
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 36s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m29s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 4m37s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s
2025-04-11 14:59:24 +10:00
26ef22cf16 Laravel framework and javascript modules update 2025-04-11 14:59:24 +10:00

View File

@ -70,8 +70,8 @@
@endsection @endsection
@section('page-scripts') @section('page-scripts')
<script type="text/javascript"> <script type="text/javascript">
var oc = {!! $oo->getObject('objectclass')->values !!};
var rdn_attr; var rdn_attr;
function editmode() { function editmode() {
@ -100,35 +100,31 @@
} }
$(document).ready(function() { $(document).ready(function() {
@if($step === 2) $('#newattr').on('change',function(item) {
var oc = {!! $o->getObject('objectclass')->values !!}; $.ajax({
type: 'POST',
$('#newattr').on('change',function(item) { beforeSend: function() {},
$.ajax({ success: function(data) {
type: 'POST', $('#newattrs').append(data);
url: '{{ url('entry/attr/add') }}/'+item.target.value, },
data: { error: function(e) {
objectclasses: oc, if (e.status != 412)
}, alert('That didnt work? Please try again....');
cache: false, },
beforeSend: function() {}, url: '{{ url('entry/attr/add') }}/'+item.target.value,
success: function(data) { data: {
$('#newattrs').append(data); objectclasses: oc,
}, },
error: function(e) { cache: false
if (e.status != 412)
alert('That didnt work? Please try again....');
},
});
// Remove the option from the list
$(this).find('[value="'+item.target.value+'"]').remove()
// If there are no more options
if ($(this).find("option").length === 1)
$('#newattr-select').remove();
}); });
@endif
// Remove the option from the list
$(this).find('[value="'+item.target.value+'"]').remove()
// If there are no more options
if ($(this).find("option").length === 1)
$('#newattr-select').remove();
});
editmode(); editmode();
}); });