PageSourceSearch

https://snowdesignhk.com/wp-content/plugins/erp/modules/crm/assets/js/erp-subscription-form.js?ver=1.11.3

js snowdesignhk.com collected 2026-09-24 14:53:11 UTC 1,480 bytes, 50 lines download raw bytes

1;(function($) {
2    'use strict';
3
4    $('body').on('submit', '.erp-subscription-form', function (e) {
5        e.preventDefault();
6
7        var self      = $(this),
8            form_data = $(this).serialize();
9
10        $(this).addClass('doing-ajax')
11               .find('.erp-subscription-form-msg')
12               .removeClass('error-msg warning-msg success-msg')
13               .html('');
14
15        $(this).find('input, button, textarea').prop('disabled', true);
16
17        $.ajax({
18            url: erpSubscriptionForm.ajaxurl,
19            method: 'post',
20            dataType: 'json',
21            data: {
22                action: 'erp_subscript_form_save_data',
23                _wpnonce: erpSubscriptionForm.nonce,
24                form_data: form_data
25            }
26
27        }).done(function (response) {
28
29            if (response.success && response.data.msg) {
30                self.find('.erp-subscription-form-msg')
31                       .addClass('success-msg')
32                       .html(response.data.msg);
33
34                self.removeClass('doing-ajax').get(0).reset();
35
36            } else if (response.data.msg) {
37                self.find('.erp-subscription-form-msg')
38                       .addClass('error-msg')
39                       .html(response.data.msg);
40
41                self.removeClass('doing-ajax');
42            }
43
44
45        }).always(function () {
46            self.find('input, button, textarea').prop('disabled', false);
47        });
48    })
49
50})(jQuery);

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.