Changeset e6c1f87 for resources/assets


Ignore:
Timestamp:
10/18/21 19:54:18 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
b9c4a92
Parents:
bd9e8e3
Message:

added pagination, is_important

File:
1 edited

Legend:

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

    rbd9e8e3 re6c1f87  
    99    $(".edit_document_deparment").change(function() {
    1010        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)
    1614            archId.val(selectedId + "/" + currentText);
    17         } else {
     15        else
    1816            archId.val(selectedId + "/");
    19         }
    2017    });
    2118
Note: See TracChangeset for help on using the changeset viewer.