PageSourceSearch

https://backlinkchecker.pro/assets/controllers/confirmation_contro…25042ea121a0597dac192db192a610a4ae09e4cd.js

js backlinkchecker.pro collected 2026-09-24 14:27:35 UTC 886 bytes, 33 lines download raw bytes

1import {Controller} from "@hotwired/stimulus"
2
3export default class extends Controller {
4  click(e) {
5    const target = $(this.element)
6    const confirmed = target.attr("data-confirmed");
7    const modal = $('#dataConfirmModal');
8
9    if (!modal[0]) {
10      const result = confirm($(target).attr('data-confirm'));
11      if (!result) {
12        e.stopPropagation()
13        e.preventDefault();
14      }
15      return;
16    }
17
18    if (!confirmed) {
19      e.preventDefault();
20      e.stopPropagation();
21      modal.find('.modal-body p').text($(target).attr('data-confirm'));
22      modal.modal("show");
23      modal.find(".action-confirm").off("click").click((e) => {
24        target.attr("data-confirmed", "true");
25        target[0].click();
26        modal.modal("hide");
27      })
28    } else {
29      target.removeAttr("data-confirmed");
30      /* allow default behavior to happen */
31    }
32  }
33};

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.