PageSourceSearch

https://fundaciomona.org/wp-content/plugins/correosoficial/js/library/reference-code.js?ver=1.9.1

js fundaciomona.org collected 2026-09-25 06:18:08 UTC 3,398 bytes, 89 lines download raw bytes

1/**
2 * This program is free software: you can redistribute it and/or modify it under the
3 * terms of the GNU General Public License as published by the Free Software Foundation,
4 * either version 3 of the License, or (at your option) any later version.
5 *
6 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
7 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8 * See the GNU General Public License for more details.
9 *
10 * You should have received a copy of the GNU General Public License along with this program.
11 * If not, see https://www.gnu.org/licenses/.
12 */
13/* **********************************************************************************************************
14 *                                         ReferenceCode.js
15 *   Librería de uso común para backend y front end de gestión de CityPaqs y Oficinas
16 ********************************************************************************************************* */
17
18var cod_homepaq;
19var cod_office;
20var data;
21
22/* **********************************************************************************************************
23 *                                         CityPaqs
24 ********************************************************************************************************* */
25
26/**
27 * Inserta Citypaq
28 */
29function insertCityPaq() {
30    var data = {
31        ajax: true,
32        token: static_token,
33        action: 'insertCityPaq',
34        data: dataCityPaq,
35        citypaq: cod_homepaq,
36    };
37    insertReferenceCode(data);
38}
39
40/* **********************************************************************************************************
41 *                                         Oficinas
42 ********************************************************************************************************* */
43
44/**
45 * Inserta Citypaq
46 */
47function insertOffice() {
48    var data = {
49        ajax: true,
50        token: static_token,
51        action: 'insertOffice',
52        data: dataOffice,
53        office: cod_office,
54    };
55    insertReferenceCode(data);
56}
57
58/**
59 *
60 * @param {*} data información recibida del controlador
61 */
62function insertReferenceCode(data) {
63    /**
64     * ***********************************************************************************
65     *                                    Llamada AJAX
66     * ***********************************************************************************
67     */
68    $.ajax({
69        url: ReferenceCodeUrl + rand + ajaxtrue,
70        type: 'POST',
71        data: data,
72        cache: false,
73        processData: true,
74        /**
75         * ***********************************************************************************
76         *                                    Llamada AJAX SUCCESS
77         * ***********************************************************************************
78         */
79        success: function (data) {},
80        /**
81         * ***********************************************************************************
82         *                                    Llamada AJAX ERROR
83         * ***********************************************************************************
84         */
85        error: function (e) {
86            alert('ERROR 18034: ' + ajaxError);
87        },
88    });
89}

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.