PageSourceSearch

https://www.fairfin.be/themes/custom/fairfin/js/bankwijzer_form.js?v=10.3.1

js fairfin.be collected 2026-09-24 21:30:34 UTC 2,408 bytes, 100 lines download raw bytes

1(function ($, Drupal) {
2
3  $(document).ready(function () {
4
5    function disableComplaints() {
6      $("select[name=complaint_template]").attr("readonly", "readonly").attr("disabled", "disabled").addClass("readonly");
7    }
8
9    function enableComplaints() {
10      $("select[name=complaint_template]").removeAttr("readonly").removeAttr("disabled").removeClass("readonly");
11
12    }
13
14    if ($(".config_pages--type--bank-form.main").length) {
15
16      if ($("select[name=klachtenbrief]").length) {
17        disableComplaints();
18      }
19
20
21      $("select[name=klachtenbrief]").change(function () {
22        var setId = $(this).val();
23
24
25        $("#edit-complaint select").val(null);
26        $("input[name=email_admin]").val("");
27        $("input[name=subject]").val("");
28        $("textarea[name=info]").val("");
29
30
31        if (setId) {
32
33          setSetData(setId);
34        } else {
35          disableComplaints();
36        }
37
38      })
39
40    }
41
42    $("select[name=complaint_template]").change(function () {
43      var complaintId = $(this).val();
44
45
46      if (complaintId) {
47        setComplaintData(complaintId);
48      }
49
50    })
51
52    var double = $('select[name=complaint_template]').clone();
53
54
55    function setSetData(id) {
56
57      var nodeId = $("#page-wrapper").data("node_id");
58
59      $.ajax({
60        url: "/complaint-api/set-data?id=" + id + "&node_id=" + nodeId, success: function (result) {
61
62          var ids = result.data.ids;
63
64
65          $("select[name=complaint_template] option").remove();
66
67          $("select[name=complaint_template]").append(double.find("option:first-child").clone());
68          for (var i = 0; i < ids.length; i++) {
69            var option = double.find("option[value=" + ids[i] + "]").clone();
70            $("select[name=complaint_template]").append(option);
71          }
72
73          enableComplaints();
74
75        }
76      });
77
78    }
79
80    function setComplaintData(id) {
81      $.ajax({
82        url: "/complaint-api/data?id=" + id, success: function (result) {
83
84          console.log(result.data);
85          $("input[name=email_admin]").val(result.data.email);
86          $("input[name=email_admin_bcc]").val(result.data.email_bcc);
87          $("input[name=subject]").val(result.data.subject);
88          $("textarea[name=info]").val(result.data.info);
89          $("textarea[name=info]").val(result.data.info).prop( "readonly", true );
90
91        }
92      });
93    }
94  })
95
96
97})(jQuery, Drupal);
98
99
100

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.