SHARE
TWEET

Untitled

a guest Aug 20th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $('#save_doc').on('show.bs.modal', function (e) {
  2.     let docId = $(e.relatedTarget).data('doc-id');
  3.     $('.modal input[name="doc_id"]').val(docId);
  4.    
  5.     let trueSign = $(e.relatedTarget).data('true-sign');
  6.     let trueAct = $(e.relatedTarget).data('true-act');
  7.    
  8.     if (trueAct != 1) {
  9.         $('select[name="doc_type"]').append('<option value="0">Акт выполненных работ</option>');
  10.         $('.modal-content .error1').show();
  11.     }
  12.    
  13.     if (trueSign != 1) {
  14.         $('.modal-content .doc-checkbox').show();
  15.         $('.modal-content .error2').show();
  16.     }
  17. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top