Ignore:
Timestamp:
10/17/21 20:28:35 (3 years ago)
Author:
Berat Kjufliju <kufliju@…>
Branches:
develop, master
Children:
e6c1f87
Parents:
d795fa6
Message:

added arch_id validation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • resources/assets/js/custom.js

    rd795fa6 rbd9e8e3  
    55    $(document).on('click', '.layout-builder .layout-builder-toggle', function () {
    66        $('.layout-builder').toggleClass('show');
     7    });
     8
     9    $(".edit_document_deparment").change(function() {
     10        var archId = $("input[name='arch_id']");
     11        var currentArchId = archId.val();
     12        var currentText = currentArchId.split("/")[1];
     13        var selectedId = $(this).find('option:selected').val();
     14
     15        if(currentText.length) {
     16            archId.val(selectedId + "/" + currentText);
     17        } else {
     18            archId.val(selectedId + "/");
     19        }
    720    });
    821
Note: See TracChangeset for help on using the changeset viewer.