PageSourceSearch

https://morvarid.pub/assets/erpnext/js/sub_bs.js?v=1.1.0

js morvarid.pub collected 2026-09-25 02:02:42 UTC 821 bytes, 16 lines download raw bytes

1frappe.ready(function () {
2    $("#bs-subscribe-button").click(function () {
3        const a = $("#bs-subscribe-email"),
4            e = $("#bs-subscribe-button");
5        a.val() && validate_email(a.val())
6            ? (a.attr("disabled", !0),
7              e.attr("disabled", !0),
8              erpnext.subscribe_to_newsletter({
9                  email: a.val(),
10                  callback: function (t) {
11                      t.exc ? (a.val("").attr("disabled", !1), e.attr("disabled", !1), frappe.show_alert({ message: __("Error: Not a valid id?"), indicator: "red" })) : (a.val("").attr("disabled", !1), e.attr("disabled", !1));
12                  },
13              }))
14            : frappe.show_alert({ message: "لطفا یک آدرس ایمیل معتبر وارد کنید", indicator: "red" }, 10);
15    });
16});

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.