PageSourceSearch

https://sis.glemt.org.br/Tema/Vendor/Potencia/2.0/assets/javascript/filiacao.js

js glemt.org.br collected 2026-09-27 08:15:40 UTC 1,124 bytes, 49 lines download raw bytes

1$(function () {
2
3  function showModal(brotherId) {
4    var modal = $("#filModal");
5
6    var submitBtn = $("#send-process");
7    submitBtn.off("click");
8    submitBtn.on("click", function (e) {
9      e.preventDefault();
10
11      var args = {
12        brotherId: brotherId,
13        data: $("#data").val(),
14        local: $("#local").val(),
15        observacao: $("#observacao").val()
16      };
17
18      filiar(args).
19        done(function (response) {
20          sisSetAlert("true", response.message);
21          modal.modal("hide");
22          window.location.reload();
23        }).
24        fail(function (err) {
25          sisSetAlert("false", err.responseJSON.message);
26        });
27    })
28
29    modal.modal();
30  }
31
32  function filiar(data) {
33    var data = data || {};
34    return $.post("/filiar-irmao", data, null, 'json');
35  }
36
37  $("[data-role=filiacao]").on("click", function (e) {
38    e.preventDefault();
39
40    var checked = $(this).attr('data-id');
41
42    if (checked.length > 0) {
43      console.log('show modal');
44      showModal(checked);
45    } else {
46      sisSetAlert("false", "Selecione pelo menos um registro");
47    }
48  });
49});  

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.