Changeset e6c1f87 for public


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

Location:
public/assets
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • public/assets/js/app.js

    rbd9e8e3 re6c1f87  
    916916    $(".edit_document_deparment").change(function() {
    917917        var archId = $("input[name='arch_id']");
    918         var currentArchId = archId.val();
    919         var currentText = currentArchId.split("/")[1];
    920         var selectedId = $(this).find('option:selected').val();
    921 
    922         if(currentText.length) {
     918        var currentText = archId.val().split("/")[1];
     919        var selectedId = $(this).find('option:selected').data('dept-code');
     920        if(currentText)
    923921            archId.val(selectedId + "/" + currentText);
    924         } else {
     922        else
    925923            archId.val(selectedId + "/");
    926         }
    927924    });
    928925
Note: See TracChangeset for help on using the changeset viewer.