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
This commit is contained in:
parent
3de46ac28e
commit
f4cc559931
@ -54,6 +54,9 @@
|
|||||||
var rendered = false;
|
var rendered = false;
|
||||||
var newadded = [];
|
var newadded = [];
|
||||||
|
|
||||||
|
var oc = $('attribute#objectClass input[type=text]')
|
||||||
|
.map((key,item)=>{return $(item).val()}).toArray();
|
||||||
|
|
||||||
if (newadded.length)
|
if (newadded.length)
|
||||||
process_oc();
|
process_oc();
|
||||||
|
|
||||||
|
@ -103,9 +103,10 @@
|
|||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
@if($step === 2)
|
@if($step === 2)
|
||||||
var oc = {!! $o->getObject('objectclass')->values !!};
|
|
||||||
|
|
||||||
$('#newattr').on('change',function(item) {
|
$('#newattr').on('change',function(item) {
|
||||||
|
var oc = $('attribute#objectClass input[type=text]')
|
||||||
|
.map((key,item)=>{return $(item).val()}).toArray();
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: '{{ url('entry/attr/add') }}/'+item.target.value,
|
url: '{{ url('entry/attr/add') }}/'+item.target.value,
|
||||||
|
@ -174,7 +174,6 @@
|
|||||||
@section('page-scripts')
|
@section('page-scripts')
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var dn = '{{ $o->getDNSecure() }}';
|
var dn = '{{ $o->getDNSecure() }}';
|
||||||
var oc = {!! $o->getObject('objectclass')->values !!};
|
|
||||||
|
|
||||||
function editmode() {
|
function editmode() {
|
||||||
$('#dn-edit input[name="dn"]').val(dn);
|
$('#dn-edit input[name="dn"]').val(dn);
|
||||||
@ -225,6 +224,9 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('#newattr').on('change',function(item) {
|
$('#newattr').on('change',function(item) {
|
||||||
|
var oc = $('attribute#objectClass input[type=text]')
|
||||||
|
.map((key,item)=>{return $(item).val()}).toArray();
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
beforeSend: function() {},
|
beforeSend: function() {},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user