Skip to content

Commit c7f4c50

Browse files
committed
During template create, when javascript changes an attribute that is the RDN, update the RDN value
1 parent 9ddf672 commit c7f4c50

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

resources/views/components/attribute.blade.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@
102102
$('#{{ $o->name_lc }}').on('change',function() {
103103
{!! $x->join('') !!}
104104
});
105+
106+
$('attribute').on('change',function() {
107+
if (rdn_attr === $(this).attr('id')) {
108+
$('#rdn_value').val($(this).find('input').val());
109+
}
110+
});
105111
</script>
106112
<!-- END: ONCHANGE PROCESSING {{ $o->name }} -->
107113
@append

0 commit comments

Comments
 (0)