Changeset e6c1f87 for resources/assets
- Timestamp:
- 10/18/21 19:54:18 (3 years ago)
- Branches:
- develop, master
- Children:
- b9c4a92
- Parents:
- bd9e8e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/assets/js/custom.js
rbd9e8e3 re6c1f87 9 9 $(".edit_document_deparment").change(function() { 10 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) { 11 var currentText = archId.val().split("/")[1]; 12 var selectedId = $(this).find('option:selected').data('dept-code'); 13 if(currentText) 16 14 archId.val(selectedId + "/" + currentText); 17 } else {15 else 18 16 archId.val(selectedId + "/"); 19 }20 17 }); 21 18
Note:
See TracChangeset
for help on using the changeset viewer.