Dynamically work out objectclasses on the current entry, this fixes usage issues between adding objectclasses and adding attribute that are now available from new objectclasses, as well as determining that they are not dynamic
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 31s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m24s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 4m26s
Create Docker Image / Final Docker Image Manifest (push) Successful in 8s
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 31s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m24s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 4m26s
Create Docker Image / Final Docker Image Manifest (push) Successful in 8s
This commit is contained in:
parent
986d33a22e
commit
e0fdc49b41
@ -54,6 +54,9 @@
|
||||
var rendered = false;
|
||||
var newadded = [];
|
||||
|
||||
var oc = $('attribute#objectClass input[type=text]')
|
||||
.map((key,item)=>{return $(item).val()}).toArray();
|
||||
|
||||
if (newadded.length)
|
||||
process_oc();
|
||||
|
||||
|
@ -103,9 +103,10 @@
|
||||
|
||||
$(document).ready(function() {
|
||||
@if($step === 2)
|
||||
var oc = {!! $o->getObject('objectclass')->values !!};
|
||||
|
||||
$('#newattr').on('change',function(item) {
|
||||
var oc = $('attribute#objectClass input[type=text]')
|
||||
.map((key,item)=>{return $(item).val()}).toArray();
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '{{ url('entry/attr/add') }}/'+item.target.value,
|
||||
|
@ -174,7 +174,6 @@
|
||||
@section('page-scripts')
|
||||
<script type="text/javascript">
|
||||
var dn = '{{ $o->getDNSecure() }}';
|
||||
var oc = {!! $o->getObject('objectclass')->values !!};
|
||||
|
||||
function editmode() {
|
||||
$('#dn-edit input[name="dn"]').val(dn);
|
||||
@ -225,6 +224,9 @@
|
||||
});
|
||||
|
||||
$('#newattr').on('change',function(item) {
|
||||
var oc = $('attribute#objectClass input[type=text]')
|
||||
.map((key,item)=>{return $(item).val()}).toArray();
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
beforeSend: function() {},
|
||||
|
Loading…
x
Reference in New Issue
Block a user